void () { super.addNotify(); if (myPresentationListener == null) { myPresentation.addPropertyChangeListener(myPresentationListener = this::presentationPropertyChanged); } if (!(getParent() instanceof ActionToolbar)) { ActionManagerEx.doWithLazyActionManager(__ -> update()); } else { updateToolTipText(); updateIcon(); } }