code: function isRedundant(property) {
              const value = property.value;
  
              if (value.type === "FunctionExpression") {
                  return !value.id; // Only anonymous should be shorthand method.
              }
              if (value.type === "Identifier") {
                  return astUtils.getStaticPropertyName(property) === value.name;
              }
  
              return false;
          }
docs: Determines if the property's key and method or value are named equally.
  @param {ASTNode} property Property AST node
  @returns {boolean} True if the key and value are named equally, false if not.
  @private