private void closeScopeSelector(@NotNull Queue<Token> output, int position) {
    CharSequence lastOpenedName = myCurrentScope.getScopeName();
    if (lastOpenedName != null && !lastOpenedName.isEmpty()) {
      addToken(output, position);
    }
    int nested = myNestedScope.getInt(myNestedScope.size() - 1);
    myNestedScope.removeInt(myNestedScope.size() - 1);
    for (int i = 0; i < nested; i++) {
      myCurrentScope = myCurrentScope.getParentOrSelf();
    }
  }
private void closeScopeSelector(@NotNull Queue<Token> output, int position)