public static @NotNull ThreadPoolExecutor newSingleThreadExecutor(@NonNls @NotNull String name, int priority) {
    return new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS,
                                  new LinkedBlockingQueue<>(), newNamedThreadFactory(name, true, priority));
  }
public static @NotNull ThreadPoolExecutor newSingleThreadExecutor(@NonNls @NotNull String name, int priority)