void (StructureConfigurableContext context) { myContext = context; myContext.getDaemonAnalyzer().addListener(new ProjectStructureDaemonAnalyzerListener() { @Override public void problemsChanged(@NotNull ProjectStructureElement element) { if (!myTree.isShowing()) return; myTree.revalidate(); myTree.repaint(); } }); Disposer.register(myProjectStructureConfigurable, this); }