code: public static Class getRawType(final Type t)
      {
          if (t instanceof ParameterizedType)
          {
              ParameterizedType pType = (ParameterizedType) t;
  
              if (pType.getRawType() instanceof Class)
              {
                  return (Class) pType.getRawType();
              }
          }
          return null;
      }
docs: Given the passed in Type t, return the raw type of it, if the passed in value is a ParameterizedType.
  @param t Type to attempt to get raw type from.
  @return Raw type obtained from the passed in parameterized type or null if T is not a ParameterizedType