boolean (Project project, VirtualFile vFile, boolean wasIndexedAlready, Document document, boolean saved) { PsiFile cachedPsi = PsiManagerEx.getInstanceEx(project).getFileManager().getCachedPsiFile(vFile); IndexingStampInfo indexingStampInfo = getIndexingStampInfo(vFile); if (indexingStampInfo != null && !indexingStampInfo.contentLengthMatches(vFile.getLength(), getCurrentTextContentLength(project, vFile, document, cachedPsi))) { diagnoseLengthMismatch(vFile, wasIndexedAlready, document, saved, cachedPsi); return false; } return true; }