void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null || !helper.allAreIgnored()) { presentation.setEnabledAndVisible(false); return; } FileGroupInfo fileGroupInfo = helper.getFileGroupInfo(); if (myUseCommonExtension) { presentation.setEnabledAndVisible(helper.areIgnoreExtensionOk()); presentation.setText(fileGroupInfo.getExtensionMask(), false); presentation.setDescription(messagePointer("action.Subversion.UndoIgnore.description")); } else { presentation.setEnabledAndVisible(helper.areIgnoreFilesOk()); if (fileGroupInfo.oneFileSelected()) { presentation.setText(fileGroupInfo.getFileName(), false); } else { presentation.setText(messagePointer("action.Subversion.UndoIgnore.text")); } presentation.setDescription(messagePointer("action.Subversion.UndoIgnore.description")); } }