private static void setBorder(JComponent c, boolean leftMost) {
    if (c instanceof JScrollPane) {
      c.setBorder(leftMost ? LEFT_BORDER : MIDDLE_BORDER);
    }
  }
private static void setBorder(JComponent c, boolean leftMost)