boolean ( PsiBinaryExpression expression) { final IElementType tokenType = expression.getOperationTokenType(); if (!tokenType.equals(JavaTokenType.ASTERISK) && !tokenType.equals(JavaTokenType.DIV)) { return false; } final PsiExpression lhs = expression.getLOperand(); final PsiType lhsType = lhs.getType(); if (lhsType == null) { return false; } if (!ShiftUtils.isIntegral(lhsType)) { return false; } final PsiExpression rhs = PsiUtil.skipParenthesizedExprDown(expression.getROperand()); if (rhs == null) { return false; } return ShiftUtils.isPowerOfTwo(rhs); }