void () { configureByFiles(BASE_PATH, BASE_PATH + "conditional.properties", BASE_PATH + "Conditional.java"); PsiElement element = myFile.findElementAt(myEditor.getCaretModel().getOffset()); Property prop = PsiTreeUtil.getNonStrictParentOfType(element, Property.class); PsiReference[] usages = ReferencesSearch.search(prop).toArray(PsiReference.EMPTY_ARRAY); assertEquals(2, usages.length); }