boolean (PsiExpression exp) { if (!(exp instanceof PsiBinaryExpression binary)) { return false; } final IElementType tokenType = binary.getOperationTokenType(); if (!JavaTokenType.PERC.equals(tokenType)) { return false; } final PsiExpression rhs = binary.getROperand(); final PsiExpression lhs = binary.getLOperand(); if (rhs == null) { return false; } return hasValue(rhs, 2) && !isChanged(lhs) && canBeNegative(lhs); }