boolean (GrExpression condition) { condition = (GrExpression)PsiUtil.skipParentheses(condition, false); if (condition == null) { return false; } if (isSimpleFieldAccess(condition)) { return true; } if (condition instanceof GrUnaryExpression postfixExpression && ((GrUnaryExpression)condition).isPostfix()) { final GrExpression operand = postfixExpression.getOperand(); return isSimpleFieldComparison(operand); } if (condition instanceof GrUnaryExpression unaryExpression) { final GrExpression operand = unaryExpression.getOperand(); return isSimpleFieldComparison(operand); } if (condition instanceof GrBinaryExpression binaryExpression) { final GrExpression lOperand = binaryExpression.getLeftOperand(); final GrExpression rOperand = binaryExpression.getRightOperand(); if (isLiteral(rOperand)) { return isSimpleFieldComparison(lOperand); } else if (isLiteral(lOperand)) { return isSimpleFieldComparison(rOperand); } else { return false; } } return false; }