code: static boolean isConstantByConvention(
        CodingConvention convention, Node node) {
      Node parent = node.getParent();
      if (parent.isGetProp() && node == parent.getLastChild()) {
        return convention.isConstantKey(node.getString());
      } else if (mayBeObjectLitKey(node)) {
        return convention.isConstantKey(node.getString());
      } else if (node.isName()) {
        return convention.isConstant(node.getString());
      }
      return false;
    }
docs: Whether the given name is constant by coding convention.