void () { FileTemplate selected = getSelectedTemplate(); if (selected instanceof BundledFileTemplate) { if (Messages.showOkCancelDialog(IdeBundle.message("prompt.reset.to.original.template"), IdeBundle.message("title.reset.template"), LangBundle.message("button.reset"), CommonBundle.getCancelButtonText(), Messages.getQuestionIcon()) != Messages.OK) { return; } ((BundledFileTemplate)selected).revertToDefaults(); editor.reset(); isModified = true; } }