void (boolean resultPositive, boolean lPositive, boolean rPositive, PsiElement expression) { if (!myThrowExceptionOnOverflow) return; boolean overflow = lPositive == rPositive && lPositive != resultPositive; if (overflow) throw new ConstantEvaluationOverflowException(expression); }