boolean (@Nullable PsiType type) { if (type == null) { return false; } if (PsiTypes.intType().equals(type) || PsiTypes.byteType().equals(type) || PsiTypes.longType().equals(type)) { return true; } PsiPrimitiveType unboxedType = PsiPrimitiveType.getUnboxedType(type); return PsiTypes.intType().equals(unboxedType) || PsiTypes.byteType().equals(unboxedType) || PsiTypes.longType().equals(unboxedType); }