void () { FileTypeManagerImpl.FileTypeWithDescriptor ftd = myRecognizedFileType.getSelectedFileType(); if (ftd == null) return; FileTypeConfigurableInteractions.patternRemoved.log(ftd.fileType); Pair<FileNameMatcher, Language> removed = myPatterns.removeSelected(); if (removed == null) return; myTempPatternsTable.removeAssociation(removed.first, ftd); myTempTemplateDataLanguages.removeAssociation(removed.first, removed.second); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myPatterns.myList, true)); }