public synchronized void removeCommand(@NotNull ConsoleCommunication consoleComm,
                                         @NotNull ConsoleCommunication.ConsoleCodeFragment codeFragment) {
    var queue = getQueue(consoleComm);
    if (queue == null) return;
    if (!queue.isEmpty()) {
      for (var code : queue) {
        if (code.equals(codeFragment)) {
          code.setText(STUB);
          break;
        }
      }
    }
  }
public synchronized void removeCommand(@NotNull ConsoleCommunication consoleComm,
                                         @NotNull ConsoleCommunication.ConsoleCodeFragment codeFragment)