PsiBinaryExpression (@NotNull PsiAssignmentExpression assignment) { final PsiBinaryExpression rhs = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprDown(assignment.getRExpression()), PsiBinaryExpression.class); if (rhs == null || !rhs.getOperationTokenType().equals(JavaTokenType.DIV) || !TypeConversionUtil.isIntegralNumberType(rhs.getType())) { return null; } return rhs; }