public static @NotNull Query<PsiReference> search(@NotNull PsiElement element) {
    return search(element, GlobalSearchScope.allScope(PsiUtilCore.getProjectInReadAction(element)), false);
  }
public static @NotNull Query<PsiReference> search(@NotNull PsiElement element)