void (@Nullable LanguageFileType type, @Nullable Language dialect, @Nullable PatternContext context) { if (type == null) { setSelectedItem(null); } else { for (FileTypeInfo info : myFileTypeInfos) { if (info.isEqualTo(type, dialect, context)) { setSelectedItem(info); return; } } } }