String (@NotNull VirtualFile file) { return ReadAction.compute(() -> { Document document = FileDocumentManager.getInstance().getDocument(file); if (document != null) { return document.getText(); } return LoadTextUtil.loadText(file).toString(); }); }