boolean (PsiExpression expression) { expression = PsiUtil.skipParenthesizedExprDown(expression); if (!(expression instanceof PsiLiteralExpression literalExpression)) { return false; } @NonNls final String text = literalExpression.getText(); return PsiKeyword.TRUE.equals(text) || PsiKeyword.FALSE.equals(text); }