void () { final PsiReference ref = findReferenceByMarker(); final PsiElement source = ref.getElement(); final PsiElement target = ref.resolve(); assertNotNull(target); assertNotSame(source, target); assertTrue(PyPsiUtils.isBefore(target, source)); }