code: @Override
      public List<String> removeSavedPlainCommands() {
          if (saved.isEmpty()) {
              return Collections.emptyList();
          }
          List<String> result = new ArrayList<>(saved);
          saved.clear();
          if (!result.isEmpty()) {
              log.info("{} commands are removed from saved list", result.size());
          }
          return result;
      }
docs: Stable work is not guaranteed