public static void show(@NotNull final JComponent dataComponent,@Nullable final JComponent actionListenerComponent,@NotNull final String title,@NotNull final Project project,@Nullable final Collection<Runnable> closeListeners,@NotNull final AnAction... customActions){
  final ToolWindowApi api=new ToolWindowApi(project,title);
  final Collection<Runnable> closeListenersToAdd=new ArrayList<Runnable>(Collections.singleton(new MyToolWindowCloser(api)));
  if (closeListeners != null) {
    closeListenersToAdd.addAll(closeListeners);
  }
  api.add(PanelWithActions.wrap(dataComponent,closeListenersToAdd,actionListenerComponent,customActions));
}

public static void show ( @ NotNull final JComponent dataComponent , @ Nullable final JComponent actionListenerComponent , @ NotNull final String title , @ NotNull final Project project , @ Nullable final Collection < Runnable > closeListeners , @ NotNull final AnAction ... customActions ) { final ToolWindowApi api = new ToolWindowApi ( project , title ) ; final Collection < Runnable > closeListenersToAdd = new ArrayList < Runnable > ( Collections . singleton ( new MyToolWindowCloser ( api ) ) ) ; if ( closeListeners != null ) { closeListenersToAdd . addAll ( closeListeners ) ; } api . add ( PanelWithActions . wrap ( dataComponent , closeListenersToAdd , actionListenerComponent , customActions ) ) ; }
displays some component in the toolwindow
