cleanup psi change handler: looks like assertEDT is not needed

GitOrigin-RevId: 03c1f8163dacf2b277f4522448d34545729f3133
This commit is contained in:
Alexey Kudravtsev
2026-02-09 15:58:56 +00:00
committed by intellij-monorepo-bot
parent cc7788d278
commit 49c0bc888d
@@ -73,8 +73,6 @@ final class PsiChangeHandler extends PsiTreeChangeAdapter implements Runnable {
}
private void updateChangesForDocument(@NotNull Document document) {
Application application = ApplicationManager.getApplication();
application.assertIsDispatchThread();// to prevent changedElements corruption
if (myProject.isDisposed()) {
return;
}
@@ -102,6 +100,7 @@ final class PsiChangeHandler extends PsiTreeChangeAdapter implements Runnable {
else {
selectedPsiFile = getRawCachedPsiFile(selectedEditor.getDocument());
}
Application application = ApplicationManager.getApplication();
if (selectedPsiFile != null && !application.isUnitTestMode()) {
application.invokeLater(() -> {
if (!selectedEditor.isDisposed() &&