List<PsiNamedElement> () { final List<PyExpression> expressions = PyUtil.flattenedParensAndStars(getTarget()); final List<PsiNamedElement> results = new ArrayList<>(); for (PyExpression expression : expressions) { if (expression instanceof PsiNamedElement) { results.add((PsiNamedElement)expression); } } return results; }