src/vs/workbench/api/common/extHostTerminalService.ts/BaseExtHostTerminalService/_getTerminalObjectById
class BaseExtHostTerminalService:	private _getTerminalObjectById<T extends ExtHostTerminal>(array: T[], id: number): T | null {
		const index = this._getTerminalObjectIndexById(array, id);
		return index !== null ? array[index] : null;
	}