private static IList<IGitRef> DataSourceToGitRefs(ComboBox cb) { return (IList<IGitRef>)cb.DataSource; }