PsiFile (@NotNull VirtualFile vFile) { if (!vFile.isValid()) { throw new InvalidVirtualFileAccessException(vFile); } Project project = myManager.getProject(); if (project.isDisposed()) { LOG.error("Project is already disposed: " + project); } dispatchPendingEvents(); FileViewProvider viewProvider = getRawCachedViewProvider(vFile); if (viewProvider == null || viewProvider.getUserData(IN_COMA) != null) { return null; } return ((AbstractFileViewProvider)viewProvider).getCachedPsi(viewProvider.getBaseLanguage()); }