public synchronized void cancelSubmittedTasks(@NotNull PyFrameAccessor frameAccessor) {
    int i = myFrameAccessors.indexOf(frameAccessor);
    if (i != -1) {
      List<Future> submittedTasks = mySubmittedTasks.get(i);
      for (Future task : submittedTasks) {
        if (!task.isDone()) {
          task.cancel(true);
        }
      }
      submittedTasks.clear();
    }
  }
public synchronized void cancelSubmittedTasks(@NotNull PyFrameAccessor frameAccessor)