Collection<PsiElement> (@NotNull PyReferenceExpression referenceExpression) { final String referenceName = referenceExpression.getName(); if (referenceName == null || referenceExpression.isQualified()) { return Collections.emptyList(); } final PyResolveProcessor processor = new PyResolveProcessor(referenceName, true); scopeCrawlUp(processor, referenceExpression, referenceName, null); return processor.getElements(); }