public synchronized @Nullable ConsoleCommunication.ConsoleCodeFragment getFirstCommand(@NotNull ConsoleCommunication consoleComm) {
    var queue = getQueue(consoleComm);
    if (queue == null) return null;
    for (var elem : queue) {
      if (!elem.getText().equals(STUB)) {
        return elem;
      }
    }
    return null;
  }
public synchronized @Nullable ConsoleCommunication.ConsoleCodeFragment getFirstCommand(@NotNull ConsoleCommunication consoleComm)