docs: @Override
      public <T extends GraphQLType> Comparator<? super T> getComparator(SchemaPrinterComparatorEnvironment environment) {
          Comparator<?> comparator = registry.get(environment);
          if (comparator != null) {
              //noinspection unchecked
              return (Comparator<? super T>) comparator;
          }
          comparator = registry.get(environment.transform(builder -> builder.parentType(null)));
          if (comparator != null) {
              //noinspection unchecked
              return (Comparator<? super T>) comparator;
          }
          return DEFAULT_COMPARATOR;
      }