code: public static boolean isFieldParameterizedWithClass(final Field field, final Class c) {
          if (field.getGenericType() instanceof ParameterizedType) {
              final ParameterizedType genericType = (ParameterizedType) field.getGenericType();
              for (final Type type : genericType.getActualTypeArguments()) {
                  if (type == c) {
                      return true;
                  }
                  if (c.isInterface() && implementsInterface((Class) type, c)) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Check if a field is parameterized with a specific class.
  
  @param field the field
  @param c     the class to check against
  @return true if the field is parameterized and c is the class that parameterizes the field, or is an interface that the parameterized
  class implements, else false
  @deprecated this class is unused in morphia and will be removed in a future release