@Override
  public @NotNull List<FileTemplate> getTemplates() {
    int size = myModel.getSize();
    List<FileTemplate> templates = new ArrayList<>(size);
    for (int i = 0; i < size; i++) {
      templates.add(myModel.getElementAt(i));
    }
    return templates;
  }
@Override
  public @NotNull List<FileTemplate> getTemplates()