@Override public void visitAssignmentExpression(@NotNull PsiAssignmentExpression expression) { super.visitAssignmentExpression(expression); final IElementType tokenType = expression.getOperationTokenType(); if (!tokenType.equals(JavaTokenType.PLUSEQ)) { return; } final PsiExpression lhs = expression.getLExpression(); if (!ExpressionUtils.hasStringType(lhs)) { return; } final PsiExpression rhs = expression.getRExpression(); checkExpression(rhs); }
@Override public void visitAssignmentExpression(PsiAssignmentExpression expression) { super.visitAssignmentExpression(expression); checkExpression(expression); }