code: protected String getBaseTypeName(JClassType type) {
      if(type == null){
        return null;
      }
      if (type instanceof JRealClassType) {
        return type.getQualifiedSourceName();
      } else if (type.isParameterized() != null) {
        return type.isParameterized().getBaseType().getQualifiedSourceName();
      } else if (type.isRawType() != null) {
        return type.isRawType().getQualifiedSourceName();
      }
      return type.getQualifiedSourceName();
    }
docs: Returns a simple types, including classes and
  interfaces, parameterized, and raw types. Null is returned for other types
  such as arrays and type parameters (e.g., 'E' in java.util.List<E>) because
  filtering is meaningless for such types.