code: public static LinkedHashMap<String, Type> resolveRawGenerics(final Class<?> type) {
          // inner class can use outer class generics
          return fillOuterGenerics(type, resolveDirectRawGenerics(type), null);
      }
docs: Resolve type generics by declaration (as upper bound). Used for cases when actual generic definition is not
  available (so actual generics are unknown). In most cases such generics resolved as Object
  (for example, {@code Some<T>}).
  <p>
  If class is inner class, resolve outer class generics (which may be used in class)
  
  @param type class to analyze generics for
  @return resolved generics (including outer class generics) or empty map if not generics used
  @see #resolveDirectRawGenerics(Class) to resolve without outer type