public static @NotNull <T> Processor<T> wrapInReadAction(final @NotNull Processor<? super T> processor) {
    return t -> ReadAction.compute(() -> processor.process(t));
  }
public static @NotNull <T> Processor<T> wrapInReadAction(final @NotNull Processor<? super T> processor)