void (PsiExpression anchor, PsiExpression rhs) { rhs = PsiUtil.skipParenthesizedExprDown(rhs); if (!ShiftUtils.isPowerOfTwo(rhs)) return; final PsiType type = anchor.getType(); if (type == null || !ClassUtils.isIntegral(type)) return; registerError(anchor, anchor); }