void () { ThreadingAssertions.assertEventDispatchThread(); if (myProject.isDisposed()) return; boolean isModified = myDiffPanel.isModified(); if (myButtonsPanel.updateButtons(isModified)) { myTree.setValid(!isModified); } }