void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null || !helper.allCanBeIgnored()) { presentation.setEnabledAndVisible(false); return; } FileGroupInfo fileGroupInfo = helper.getFileGroupInfo(); if (myUseCommonExtension) { String actionName = fileGroupInfo.getExtensionMask(); presentation.setEnabledAndVisible(fileGroupInfo.sameExtension()); presentation.setText(actionName, false); presentation.setDescription(messagePointer("action.Subversion.Ignore.MatchExtension.description", actionName)); } else { if (fileGroupInfo.oneFileSelected()) { presentation.setText(fileGroupInfo.getFileName(), false); } else { presentation.setText(messagePointer("action.Subversion.Ignore.ExactMatch.text")); } presentation.setDescription(messagePointer("action.Subversion.Ignore.ExactMatch.description")); } }