/** * Indicates whether this element is enabled in the given default state for a particular action. */ public static boolean isEnabled(State state) { return (state.getDefaults().getElement(index) != null); }