CharSequence (@NotNull VirtualFile file, boolean tooLarge) { if (file instanceof LightVirtualFile) { FileViewProvider vp = findCachedPsiInAnyProject(file); if (vp != null) { return vp.getPsi(vp.getBaseLanguage()).getText(); } } return tooLarge ? LoadTextUtil.loadText(file, getPreviewCharCount(file)) : LoadTextUtil.loadText(file); }