void (boolean isOneLine) { PsiFile file = myFixture.configureByFile(getTestName(false) + ".java"); int offset = getEditor().getCaretModel().getOffset(); PsiElement variable = getFile().findElementAt(offset).getParent(); Collection<UsageInfo> usageInfos = myFixture.findUsages(variable); List<UsageInfo2UsageAdapter> usages = ContainerUtil.map(usageInfos, UsageInfo2UsageAdapter::new); myFixture.openFileInEditor(file.getVirtualFile()); assertEquals(isOneLine, ShowUsagesAction.areAllUsagesInOneLine(ContainerUtil.getFirstItem(usages), usages)); }