void () { BinaryFileDecompiler decompiler = file -> { throw new IllegalStateException("oh no"); }; ExtensionTestUtil.addExtension((ExtensionsAreaImpl)ApplicationManager.getApplication().getExtensionArea(), BinaryFileTypeDecompilers.getInstance(), new FileTypeExtensionPoint<>(ArchiveFileType.INSTANCE.getName(), decompiler)); PsiFile psiFile = myFixture.addFileToProject("X.jar", "xxx"); assertEquals(ArchiveFileType.INSTANCE, psiFile.getFileType()); assertTrue(psiFile.getFileType().isBinary()); UsageInfo2UsageAdapter usage = new UsageInfo2UsageAdapter(new UsageInfo(psiFile)); UsageViewImpl usageView = createUsageView(usage); usageView.expandAll(); UIUtil.dispatchAllInvocationEvents(); assertTrue(usage.isValid()); usage.getElement(); usage.canNavigateToSource(); usage.canNavigate(); usage.getUsageInfo(); usage.getFile(); usage.getMergedInfos(); usage.getPresentation(); usage.getPlainText(); usage.getUsageType(); usage.getText(); usage.getIcon(); usage.getLocation(); usage.getTooltipText(); usage.getLibraryEntry(); usage.getUsageInfo().getRangeInElement(); usage.getUsageInfo().getElement(); usage.getUsageInfo().getNavigationOffset(); }