dialog = new GeneratorDialog(project, action);
} else {
Notifications.Bus.notify(new Notification(
fileType.getLanguageName(),
IgnoreBundle.message("action.newFile.exists", fileType.getLanguageName()),
<BUG>IgnoreBundle.message("action.newFile.exists.in", file.getVirtualFile().getPath()),
</BUG>
NotificationType.INFORMATION
<BUG>), project);
dialog = new GeneratorDialog(project, file);</BUG>
}

dialog = new GeneratorDialog(project, action);
} else {
Notifications.Bus.notify(new Notification(
fileType.getLanguageName(),
IgnoreBundle.message("action.newFile.exists", fileType.getLanguageName()),
IgnoreBundle.message("action.newFile.exists.in", virtualFile.getPath()),
NotificationType.INFORMATION
), project);
if (file == null) {
file = Utils.getPsiFile(project, virtualFile);
}
dialog = new GeneratorDialog(project, file);
}
