@NotNull
  @Override
  protected List<ValidationInfo> doValidateAll() {
    List<ValidationInfo> result = new ArrayList<>();
    String filterName = getNewFilterName();
    if (filterName.isEmpty()) {
      result.add(new ValidationInfo(IdeBundle.message("error.filter.name.should.be.specified"), myNameField));
    }
    else {
      for (int i = 0; i < myFilters.size(); i++) {
        TodoFilter filter = myFilters.get(i);
        if (myFilterIndex != i && filterName.equals(filter.getName())) {
          result.add(new ValidationInfo(IdeBundle.message("error.filter.with.the.same.name.already.exists"), myNameField));
        }
      }
    }
    if (myFilter.isEmpty()) {
      result.add(new ValidationInfo(IdeBundle.message("error.filter.should.contain.at.least.one.pattern"), myPatternsScrollPane));
    }
    return result;
  }
@NotNull
  @Override
  protected List<ValidationInfo> doValidateAll()