void (Object element, String selectedText) { if (element != null) { ScrollingUtil.selectItem(myComponent, (FileTypeManagerImpl.FileTypeWithDescriptor)element); if (element.equals(myCurrentType)) { myPatterns.select(myExtension); } } }