List<LookupElement> (@NotNull final PyDictLiteralExpression dict) { return Arrays.stream(dict.getElements()) .map(e -> PyUtil.as(e.getKey(), PyStringLiteralExpression.class)) .filter(k-> k != null) .map(k -> createLookUpElement(k.getStringValue())) .collect(Collectors.toList()); }