synchronized void removeTouchbar(@NotNull TBPanel tb) {
      if (myStack.isEmpty()) {
        return;
      }

      final @Nullable ComponentActions topCA = myStack.peek();
      final @Nullable TBPanel top = topCA != null ? topCA.getCurrent() : null;
      myStack.removeIf((ca) -> ca.getCurrent() == tb);

      if (top == tb) {
        _scheduleUpdateNative();
      }
    }
synchronized void removeTouchbar(@NotNull TBPanel tb)