code: function selectItem(editor, model, getItemRange) {
  	editor.transact(() => {
  		const selections = editor.getSelectedBufferRanges()
  		.map(anchor => getItemRange(model, anchor) || anchor);
  
  		editor.setSelectedBufferRanges(selections);
  	});
  }
docs: Selects each item, returned by `getItem` method, in given editor
  @param  {TextEditor}  editor
  @param  {SyntaxModel} model
  @param  {Function}    getItemRange