void (@NotNull Element element) { if (this instanceof PersistentStateComponent) { ((PersistentStateComponent<?>)this).getState(); } else { element.setAttribute("enabled", String.valueOf(myIsEnabled)); } }