docs: public static boolean isLeaf(GraphQLType type) {
          GraphQLUnmodifiedType unmodifiedType = unwrapAll(type);
          return
                  unmodifiedType instanceof GraphQLScalarType
                          || unmodifiedType instanceof GraphQLEnumType;
      }