src/vs/workbench/contrib/scm/browser/scmViewPane.ts/isRepositoryItem
function isRepositoryItem(item: IRepositoryItem | IGroupItem): item is IRepositoryItem {
	return Array.isArray((item as IRepositoryItem).groupItems);
}