code: public int getIndex(final List<String> scopes) {
      this.checkInitialized();
      boolean _isNullOrUnknown = this.isNullOrUnknown(scopes);
      if (_isNullOrUnknown) {
        return (-1);
      }
      final Integer index = this.scopes.inverse().get(scopes);
      Integer _xifexpression = null;
      if ((index == null)) {
        _xifexpression = Integer.valueOf((-1));
      } else {
        _xifexpression = index;
      }
      return (_xifexpression).intValue();
    }
docs: Returns with the internal scope index for the argument. Returns {@code -1} if the scopes
  argument is <code>null</code>, the {@link SemanticHighlightingRegistry#UNKNOWN_SCOPES unknown scopes}
  or is not registered to this manager.