code: protected final boolean hasScheduledTasks() {
          Queue<ScheduledFutureTask<?>> scheduledTaskQueue = this.scheduledTaskQueue;
          ScheduledFutureTask<?> scheduledTask = scheduledTaskQueue == null ? null : scheduledTaskQueue.peek();
          return scheduledTask != null && scheduledTask.deadlineNanos() <= nanoTime();
      }
docs: Returns {@code true} if a scheduled task is ready for processing.