CharSequence (@NotNull VirtualFile file) { PsiManager manager = PsiManager.getInstance(DefaultProjectFactory.getInstance().getDefaultProject()); ClsFileImpl clsFile = new ClsFileImpl(new ClassFileViewProvider(manager, file), true); StringBuilder buffer = new StringBuilder(); ApplicationManager.getApplication().runReadAction(() -> clsFile.appendMirrorText(buffer)); return buffer; }