Object (@NotNull PySequenceExpression expression) { if (expression instanceof PyDictLiteralExpression) { final Map<Object, Object> result = new HashMap<>(); for (final PyKeyValueExpression keyValue : ((PyDictLiteralExpression)expression).getElements()) { addRecordFromDict(result, keyValue.getKey(), keyValue.getValue()); } return result; } return ContainerUtil.map(expression.getElements(), element -> myEvaluateCollectionItems ? evaluate(element) : element); }