String (@NotNull final PsiType type) { if (type instanceof PsiPrimitiveType) { return ((PsiPrimitiveType)type).getBoxedTypeName(); } if (type instanceof PsiClassType) { return ((PsiClassType)type).getClassName(); } if (type instanceof PsiArrayType) { return getTypeShortName(((PsiArrayType)type).getComponentType()) + "[]"; } return null; }