JTextComponent componentForTransitions = SubstanceCoreUtilities
.getTextComponentForTransitions(c);
if (componentForTransitions != null) {
ComponentUI ui = componentForTransitions.getUI();
if (ui instanceof Trackable) {
Trackable trackable = (Trackable) ui;
ButtonModel transitionModel = trackable.getTransitionModel();
state = ComponentState.getState(transitionModel,
componentForTransitions);