function getLifeCycleMethods(node) {
      const properties = astUtil.getComponentProperties(node);
      return properties.map((property) => ({
        name: astUtil.getPropertyName(property),
        node: astUtil.getPropertyNameNode(property),
      }));
    }
Returns life cycle methods if available
@param {ASTNode} node The AST node being checked.
@returns {Array} The array of methods.