public static String stripGenerics(String className) {
        String name = className;
        
        if (name.contains("<")) {
            name = name.substring(0, name.indexOf('<'));
        }
        
        if (name.contains("[")) {
            name = name.substring(0, name.indexOf('['));
        }
        
        return name;
    }
Removes the generics and array parts of a class name.

@param className  the full class name
@return           class name with decorations stripped
common-parent/codegen/src/main/java/com/speedment/common/codegen/util/Formatting.java