src/vs/workbench/contrib/scm/browser/util.ts/isSCMRepository
export function isSCMRepository(element: any): element is ISCMRepository {
	return !!(element as ISCMRepository).provider && !!(element as ISCMRepository).input;
}