@NotNull
  public <R extends PsiElement> PsiQuery<R> ancestors(@NotNull final PsiFilter<R> filter) {
    return getQueryWithProducer(o -> PsiElementExtKt.getAncestors(o, o.getContainingFile(), filter.myClass), filter);
  }
@NotNull
  public <R extends PsiElement> PsiQuery<R> ancestors(@NotNull final PsiFilter<R> filter)