void () { configure(); final int offset = getEditor().getCaretModel().getOffset(); final PsiReference reference = getFile().findReferenceAt(offset); assertNotNull(reference); final Collection<PsiElement> candidates = TargetElementUtil.getInstance().getTargetCandidates(reference); assertEquals(candidates.toString(), 1, candidates.size()); final PsiElement item = ContainerUtil.getFirstItem(candidates); assertNotNull(item); assertTrue(item instanceof PsiClass && CommonClassNames.JAVA_LANG_STRING.equals(((PsiClass)item).getQualifiedName())); }