void (@NotNull PsiFile file) { if (!ApplicationManager.getApplication().isWriteAccessAllowed() && !isNonPhysicalOrInjected(file)) { LOG.error("Threading assertion. " + getThreadingDiagnostics(file)); } }