PsiElementPredicate () { return element -> { GrConditionalExpression ternary = findTernary(element); return ternary != null && ternary.getThenBranch() != null && ternary.getElseBranch() != null && ternary.getParent() instanceof GrReturnStatement; }; }