void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiBinaryExpression binaryExpression = ObjectUtils.tryCast(element.getParent(), PsiBinaryExpression.class); if (binaryExpression == null) return; final PsiExpression rhs = binaryExpression.getROperand(); if (rhs == null) return; final PsiExpression lhs = binaryExpression.getLOperand(); int mask = PsiTypes.longType().equals(lhs.getType()) ? 63 : 31; final String text = String.valueOf(myValue & mask); new CommentTracker().replaceAndRestoreComments(rhs, text); }