void () { final PsiReference ref = findReferenceByMarker(); final PsiElement source = ref.getElement(); final PsiElement resolved = ref.resolve(); assertInstanceOf(resolved, PyReferenceExpression.class); assertNotSame(resolved, source); final PyReferenceExpression res = (PyReferenceExpression)resolved; assertNotNull(res); assertEquals("foo", res.getName()); assertInstanceOf(res.getParent(), PyAugAssignmentStatement.class); }