public static void toggleLog(@Nullable Project project) {
    ToolWindow toolWindow = getToolWindow(project);
    if (toolWindow != null) {
      if (toolWindow.isVisible()) {
        toolWindow.hide();
      }
      else {
        toolWindow.activate(null);
      }
    }
  }
public static void toggleLog(@Nullable Project project)