Not necessary to create a variable for `selection`, so just:

```JavaScript
        if (editor.getSelections().length > 1) {
            return;
        }
```