private void onSuccess(final DependencyAnalysisResult result) {
    //noinspection SSBasedInspection
    SwingUtilities.invokeLater(() -> {
      if (shouldShowDependenciesPanel(result)) {
        final String displayName = result.getPanelDisplayName();
        DependenciesPanel panel = new DependenciesPanel(myProject, result.getBuilders(), myExcluded);
        Content content = ContentFactory.getInstance().createContent(panel, displayName, false);
        content.setDisposer(panel);
        panel.setContent(content);
        DependenciesToolWindow.getInstance(myProject).addContent(content);
      }
    });
  }
private void onSuccess(final DependencyAnalysisResult result)