@Nullable
    public static String getTypeClassName(PsiType type) {
        String name = getTypeQualifiedClassName(type);

        // return null if it was a primitive type
        if (name == null) {
            return null;
        }

        return StringUtil.getShortName(name);
    }
@Nullable
    public static String getTypeClassName(PsiType type)