code: function (id) {
        return function (editor) {
          if (!editor.selection.isCollapsed()) {
            return Matcher.result(id, Measure.getSelectionRect(editor));
          }
  
          return null;
        };
      }
docs: textSelection :: String -> (Editor -> Matcher.result | Null)