private void updateIcon(final @Nullable UUID currentSessionId) {
    ApplicationManager.getApplication().invokeLater(() -> {
      ToolWindow toolWindow = ToolWindowManager.getInstance(myProject).getToolWindow(AUTO_BUILD_TOOLWINDOW_ID);
      if (toolWindow != null) {
        doUpdateIcon(myPanel, toolWindow, currentSessionId);
      }
    }, myProject.getDisposed());
  }
private void updateIcon(final @Nullable UUID currentSessionId)