void () { // TODO: Not clear so far why read action is used here - may be because of ROOTS_RELOADED message sent? ReadAction.run(() -> { if (!myProject.isDisposed()) { boolean mappingsChanged = updateMappings(); notifyRootsReloaded(mappingsChanged); } }); }