boolean (long time, @NotNull TimeUnit unit) { if (myOwnExecutor && myExecutor instanceof ExecutorService) { try { return ((ExecutorService)myExecutor).awaitTermination(time, unit); } catch (InterruptedException ignored) { } } return true; }