@Nullable
  @Override
  public String getErrorMessage(String newName, Project project) {
    if (FileTypeManager.getInstance().isFileIgnored(newName)) {
      return RefactoringBundle.message("dialog.message.new.directory.with.ignored.name.warning");
    }
    return null;
  }
@Nullable
  @Override
  public String getErrorMessage(String newName, Project project)