}
// Report error if the (x/y) has toInt() invoked on it
if (node.getParent() instanceof ParenthesizedExpression) {
ParenthesizedExpression parenthesizedExpression = wrapParenthesizedExpression((ParenthesizedExpression) node.getParent());
if (parenthesizedExpression.getParent() instanceof MethodInvocation) {
MethodInvocation methodInvocation = (MethodInvocation) parenthesizedExpression.getParent();
if (TO_INT_METHOD_NAME.equals(methodInvocation.getMethodName().getName())
&& methodInvocation.getArgumentList().getArguments().isEmpty()) {
errorReporter.reportErrorForNode(HintCode.DIVISION_OPTIMIZATION, methodInvocation);
return true;
}
}
}