def _HandleJsonString(self, element):
    # For collections, we have to get the imports for the first non-collection
    # up the base_type chain.
    data_type = element.data_type
    json_type = data_type.json_type
    while json_type == 'array' or json_type == 'map':
      data_type = data_type._base_type  # pylint: disable=protected-access
      json_type = data_type.json_type
    json_format = data_type.values.get('format')

    if json_type == 'string' and (json_format == 'int64'
                                  or json_format == 'uint64'):
      element.SetTemplateValue('requiresJsonString', True)
Highlight a block of text.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/java_generator.py/Java14Generator._HandleJsonString--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/pygments_highlighter.py/PygmentsHighlighter.highlightBlock