@RequiresEdt
  private void withLoadingPanel(@NotNull Consumer<? super JBLoadingPanel> consumer) {
    JBLoadingPanel loadingPanel = UIUtil.getParentOfType(JBLoadingPanel.class, myTree);
    if (loadingPanel != null) {
      consumer.accept(loadingPanel);
    }
  }
@RequiresEdt
  private void withLoadingPanel(@NotNull Consumer<? super JBLoadingPanel> consumer)