void (@NotNull VirtualFile file, @NotNull String id, @NotNull Project project) { final String message; if (file.isDirectory()) { message = PyBundle.message("refactoring.error.directory.exists", file.getName()); } else { message = PyBundle.message("refactoring.error.file.exists", file.getName()); } CommonRefactoringUtil.showErrorMessage(RefactoringBundle.message("error.title"), message, id, project); }