void () { myFixture.testHighlighting("ValidIcon.java"); PsiReference reference = myFixture.getReferenceAtCaretPosition("ValidIcon.java"); assertNotNull(reference); PsiElement resolved = reference.resolve(); assertNotNull(resolved); PsiField resolvedField = assertInstanceOf(resolved, PsiField.class); String qualifiedName = resolvedField.getContainingClass().getQualifiedName(); assertEquals(AllIcons.Actions.class.getCanonicalName(), qualifiedName); }