private void openScopeSelector(@NotNull Queue<Token> output, @Nullable CharSequence name, int position) {
    addToken(output, position);
    int indexOfSpace = name != null ? Strings.indexOf(name, ' ', 0) : -1;
    int prevIndexOfSpace = 0;
    int count = 0;
    while (indexOfSpace >= 0) {
      myCurrentScope = myCurrentScope.add(name.subSequence(prevIndexOfSpace, indexOfSpace));
      prevIndexOfSpace = indexOfSpace + 1;
      indexOfSpace = Strings.indexOf(name, ' ', prevIndexOfSpace);
      count++;
    }
    myCurrentScope = myCurrentScope.add(name != null ? name.subSequence(prevIndexOfSpace, name.length()) : null);
    myNestedScope.add(count + 1);
  }
private void openScopeSelector(@NotNull Queue<Token> output, @Nullable CharSequence name, int position)