boolean (PsiExpression expression) { if (expression == null) { return false; } final PsiType type = expression.getType(); return type != null && !(type instanceof PsiArrayType) && !(type instanceof PsiPrimitiveType) && !TypeUtils.isJavaLangString(type) && !TypeUtils.expressionHasTypeOrSubtype(expression, CommonClassNames.JAVA_LANG_NUMBER); }