boolean (PsiElement element) { if (!(element instanceof PsiAssignmentExpression assignmentExpression)) { return false; } final IElementType tokenType = assignmentExpression.getOperationTokenType(); if (!JavaTokenType.PLUSEQ.equals(tokenType) && !JavaTokenType.MINUSEQ.equals(tokenType)) { return false; } final PsiExpression lhs = assignmentExpression.getLExpression(); if (!TypeConversionUtil.isNumericType(lhs.getType())) { return false; } final PsiExpression rhs = PsiUtil.skipParenthesizedExprDown(assignmentExpression.getRExpression()) ; return ExpressionUtils.isLiteral(rhs, 1); }