private static boolean previewEnabled(@NotNull ProblemsViewPanel panel) {
    ToggleOptionAction.Option option = panel.getShowPreview();
    return option != null && option.isSelected();
  }
private static boolean previewEnabled(@NotNull ProblemsViewPanel panel)