public void setSelectedItem(@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;
        }
      }
    }
  }
public void setSelectedItem(@Nullable LanguageFileType type, @Nullable Language dialect, @Nullable PatternContext context)