public static @NotNull <T> Query<T> wrapInReadAction(final @NotNull Query<? extends T> query) {
    return new AbstractQuery<T>() {
      @Override
      protected boolean processResults(@NotNull Processor<? super T> consumer) {
        return AbstractQuery.delegateProcessResults(query, ReadActionProcessor.wrapInReadAction(consumer));
      }
    };
  }
public static @NotNull <T> Query<T> wrapInReadAction(final @NotNull Query<? extends T> query)