boolean (PsiElement element, PsiConditionalExpression conditional) { if (element == null) { return false; } final PsiElement parent = element.getParent(); if (!(parent instanceof PsiExpressionList expressionList)) { return false; } if (expressionList.getExpressionCount() != 1) { return false; } final PsiElement grandParent = expressionList.getParent(); if (!(grandParent instanceof PsiMethodCallExpression)) { return false; } final PsiElement greatGrandParent = ParenthesesUtils.getParentSkipParentheses(grandParent); return greatGrandParent == conditional; }