void (final PyDictLiteralExpression dict, final CompletionResultSet result) { PyKeyValueExpression[] keyValues = dict.getElements(); for (PyKeyValueExpression expression : keyValues) { boolean addHandler = PsiTreeUtil.findElementOfClassAtRange(dict.getContainingFile(), expression.getTextRange().getStartOffset(), expression.getTextRange().getEndOffset(), PyStringLiteralExpression.class) != null; result.addElement(createElement(expression.getKey().getText(), addHandler)); } }