void () { Map<String, PsiElement> marks = loadTest(); Assert.assertEquals(2, marks.size()); PsiElement src = marks.get("<src>").getParent(); // const -> expr; PsiElement dst = marks.get("<dst>").getParent().getParent(); // ident -> target expr Assert.assertTrue(dst instanceof PySubscriptionExpression); PyAssignmentStatement stmt = (PyAssignmentStatement)src.getParent(); List<Pair<PyExpression, PyExpression>> mapping = stmt.getTargetsToValuesMapping(); Assert.assertEquals(1, mapping.size()); Pair<PyExpression, PyExpression> pair = mapping.get(0); Assert.assertEquals(dst, pair.getFirst()); Assert.assertEquals(src, pair.getSecond()); }