void (@NotNull PsiPolyadicExpression expression) { super.visitPolyadicExpression(expression); final IElementType tokenType = expression.getOperationTokenType(); if (!tokenType.equals(JavaTokenType.DIV)) { return; } if (!hasIntegerDivision(expression)) { return; } final PsiExpression context = getContainingExpression(expression); final PsiType contextType = ExpectedTypeUtils.findExpectedType(context, true); String castTo; if (PsiTypes.floatType().equals(contextType) || PsiTypes.doubleType().equals(contextType)) { castTo = contextType.getCanonicalText(); } else { return; } registerError(expression, castTo); }