@Override
  protected @NotNull PsiElementPredicate getElementPredicate() {
    return new PsiElementPredicate() {
      @Override
      public boolean satisfiedBy(PsiElement element) {
        if (!(element instanceof PsiConditionalExpression conditionalExpression)) {
          return false;
        }
        final PsiType type = conditionalExpression.getType();
        return PsiTypes.booleanType().equals(type) || type != null && type.equalsToText(JAVA_LANG_BOOLEAN);
      }
    };
  }
@Override
  protected @NotNull PsiElementPredicate getElementPredicate()