void (@NotNull LightVirtualFile vFile) { FileViewProvider viewProvider = FileDocumentManager.getInstance().findCachedPsiInAnyProject(vFile); if (viewProvider != null) { Project project = viewProvider.getManager().getProject(); if (project != myManager.getProject()) { String psiFiles = viewProvider.getAllFiles().stream().map(f -> f.getClass() + " [" + f.getLanguage() + "]").collect(Collectors.joining(", ")); LOG.error( "Light files should have PSI only in one project, existing=" + viewProvider + " in " + project + ", requested in " + myManager.getProject() + "; psiFiles: " + psiFiles); } } }