@NotNull
  private InputValidator getValidator() {
    return new InputValidator() {
      @Override
      public boolean checkInput(final String inputString) {
        return true;
      }

      @Override
      public boolean canClose(final String inputString) {
        if (isNameAlreadyUsed(inputString.trim())) {
          Messages.showErrorDialog(getNameAlreadyUsedMessage(inputString), "");
          return false;
        }
        return true;
      }
    };
  }
@NotNull
  private InputValidator getValidator()