IndexingStampInfo (@NotNull FileContent content) { VirtualFile file = content.getFile(); boolean isBinary = file.getFileType().isBinary(); int contentLength = isBinary ? -1 : content.getPsiFile().getTextLength(); long byteLength = file.getLength(); return new IndexingStampInfo(file.getTimeStamp(), byteLength, contentLength, isBinary); }