void () { Component component = Objects.requireNonNull(myComponent.get()); if (ComponentUtil.isShowing(component, false)) { showNotify(); } else { hideNotify(); } if (isDisposed()) { return; } component.addHierarchyListener(this); }