public static boolean isToolbarVisible(@NotNull ToolWindow toolWindow, @NotNull Project project) {
    return isToolbarVisible(toolWindow, PropertiesComponent.getInstance(project));
  }
public static boolean isToolbarVisible(@NotNull ToolWindow toolWindow, @NotNull Project project)