src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts/sanitizedDirection
function sanitizedDirection(candidate: string): CallHierarchyDirection {
	return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
		? candidate
		: CallHierarchyDirection.CallsTo;
}