PyReferenceExpression (@NotNull PyReferenceExpression expr) { if (!expr.isQualified()) { return expr; } final PyExpression newExpression = myGenerator.createExpressionFromText(LanguageLevel.forElement(expr), expr.getLastChild().getText()); return (PyReferenceExpression)expr.replace(newExpression); }