public static FadeTrackerCallback getFadeCallback(
final JComponent component, final ButtonModel model,
final boolean toIgnoreSelection, final boolean toRepaintParent,
final Component componentToRepaint) {
return getFadeCallback(component, model, null, toIgnoreSelection,
new ComponentForRepaint() {
@Override
public Component getComponentForRepaint() {
return toRepaintParent ? component.getParent()
: componentToRepaint;
}