CharSequence (@NotNull VirtualFile file) { Document document = FileDocumentManager.getInstance().getCachedDocument(file); if (document != null) { return document.getText(); } return LoadTextUtil.loadText(file); }