void (AntBuildFile buildFile) { final String fileName = buildFile.getPresentableUrl(); final int result = Messages.showYesNoDialog(myProject, AntBundle.message("remove.the.reference.to.file.confirmation.text", fileName), AntBundle.message("dialog.title.confirm.remove"), Messages.getQuestionIcon()); if (result != Messages.YES) { return; } myConfig.removeBuildFile(buildFile); }