boolean (PsiType type) { if(type == null) return false; if(type instanceof PsiPrimitiveType) { return type.equals(PsiTypes.intType()) || type.equals(PsiTypes.longType()) || type.equals(PsiTypes.doubleType()); } return true; }