private void visibilityChanged() {
    if (myProject.isOpen()) {
      PsiDocumentManager.getInstance(myProject).performWhenAllCommitted(
        () -> myPanels.forEach(p -> p.updateVisibility(myToolWindow)));
    }
  }
private void visibilityChanged()