void (int expectedUsages) { PsiFile file = myFixture.configureByFile(getTestName(false) + ".java"); PsiElement element = myFixture.getElementAtCaret(); assertSize(expectedUsages, IdentifierHighlighterPass.getUsages(element, file, true)); }