PsiExpression (@NotNull PsiElement element) { assert element instanceof PsiExpression; String negatedExpressionText = BoolUtils.getNegatedExpressionText((PsiExpression)element); return JavaPsiFacade.getElementFactory(element.getProject()).createExpressionFromText(negatedExpressionText, element); }