code: public static <T extends TypeDefinition> ElementMatcher.Junction<T> ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher) {
          return new TypeSortMatcher<T>(matcher);
      }
docs: Matches generic type descriptions of the given sort.
  
  @param matcher A matcher for a generic type's sort.
  @param <T>     The type of the matched object.
  @return A matcher that matches generic types of the given sort.