public static void scrollToFirstMarker(OtrosJTextWithRulerScrollPane pane) {
    List<Marker> markers = pane.getMarkerModel().getMarkers();
    if (markers.size()>0){
      Marker marker = markers.get(0);
      marker.markerClicked();
    }
  }
Scroll to first marker if found
@param pane OtrosJTextWithRulerScrollPane
olv-gui/src/main/java/pl/otros/swing/rulerbar/RulerBarHelper.java