public <ButtonType extends JComponent & ActionButtonComponent> void paintBorder(Graphics g, ButtonType button) {
    paintBorder(g, button, getState(button));
  }
public <ButtonType extends JComponent & ActionButtonComponent> void paintBorder(Graphics g, ButtonType button)