code: public static String toStringWithGenerics(final Class<?> type, final Map<String, Type> generics) {
          // provided generics may contain outer type generics, but we will render only required generics
          final Map<String, Type> actual = GenericsUtils.extractTypeGenerics(type, generics);
          return toStringType(new ParameterizedTypeImpl(type, actual.values().toArray(new Type[0])), actual);
      }
docs: Formats class as {@code Class<generics>}. Only actual class generics are rendered.
  Intended to be used for error reporting.
  <p>
  Note: if class is inned class, outer class is not printed!
  
  @param type     class class to print with generics
  @param generics known generics map class generics map
  @return generified class string
  @see ru.vyarus.java.generics.resolver.util.map.PrintableGenericsMap to print not known generic names
  @see ru.vyarus.java.generics.resolver.util.map.IgnoreGenericsMap to print Object instead of not known generic