boolean (PsiExpression expression) { if (expression instanceof PsiPolyadicExpression binaryExpression) { final PsiType type = expression.getType(); if (TypeUtils.isJavaLangString(type)) { return false; //ignore string concatenations } return arithmeticTokens.contains(binaryExpression.getOperationTokenType()); } else if (expression instanceof PsiPrefixExpression prefixExpression) { return arithmeticTokens.contains(prefixExpression.getOperationTokenType()); } else if (expression instanceof PsiParenthesizedExpression parenthesizedExpression) { final PsiExpression contents = parenthesizedExpression.getExpression(); return isArithmetic(contents); } return false; }