function isFunctionComponentInsideClassComponent(node) {
      const parentComponent = utils.getParentComponent(node);
      const parentStatelessComponent = utils.getParentStatelessComponent(node);

      return (
        parentComponent
        && parentStatelessComponent
        && parentComponent.type === 'ClassDeclaration'
        && utils.getStatelessComponent(parentStatelessComponent)
        && utils.isReturningJSX(node)
      );
    }
Check whether given node is a function component declared inside class component.
Util's component detection fails to detect function components inside class components.
```jsx
class Component extends React.Component {
 render() {
   const NestedComponent = () => <div />;
...
```
@param {ASTNode} node The AST node being checked
@returns {boolean} True if given node a function component declared inside class component, false if not