protected void doTest(PsiFile[] files, int expectedSize) {
assertNotNull(files);
final PsiFile myFile = files[0];
assertNotNull(myFile);
final TargetElementUtilBase util = TargetElementUtilBase.getInstance();
assertNotNull(util);
final Collection<PsiElement> elements = util.getTargetCandidates(myFile.findReferenceAt(myFixture.getCaretOffset()));
assertNotNull(elements);
assertEquals(expectedSize, elements.size());
}