void () { WriteAction.run(myRootProvider::fireRootSetChanged); for (Project project : ProjectManager.getInstance().getOpenProjects()) { WriteAction.run(() -> { RootsChangeRescanningInfo info = BuildableRootsChangeRescanningInfo.newInstance().addSdk(this).buildInfo(); ((ProjectRootManagerEx)ProjectRootManager.getInstance(project)).makeRootsChange(EmptyRunnable.getInstance(), info); }); } }