def highlight_and_list_messages(self, messages, window, view):
        view_name = os.path.split(view.file_name() or view.name())[1]

        # For listing
        if self.list_errors or self.list_warnings:
            quick_message_list = []
            point_list = []

        # For highlighting
        if self.highlight_errors:
            error_region_list = []
        if self.highlight_warnings:
            warn_region_list = []

        for file_name, row, column, kind, message, all_msg in messages:
            if file_name.lower() != view_name.lower():
                continue

            # For listing
            if self.list_errors or self.list_warnings:
                point = view.text_point(row, column)
                point_list.append(point)

            # For highlighting
            message_point = view.text_point(row, column)
            message_region = trim_region(view, view.line(message_point))

            if kind == 'Error':
                # For listing
                if self.list_errors:
                    if self.include_context:
                        quick_message_list.append(all_msg.split('\n'))
                    else:
                        quick_message_list.append(all_msg.split('\n')[0])

                # For highlighting
                if self.highlight_errors:
                    error_region_list.append(message_region)
            else:
                # For listing
                if self.list_warnings:
                    if self.include_context:
                        quick_message_list.append(all_msg.split('\n'))
                    else:
                        quick_message_list.append(all_msg.split('\n')[0])

                # For highlighting
                if self.highlight_warnings:
                    warn_region_list.append(message_region)

        if self.highlight_errors:
            view.add_regions(
                ERROR_REGION_TAG,
                error_region_list,
                'invalid.illegal',
                ERROR_REGION_MARK,
                ERROR_REGION_STYLE
            )

        if self.highlight_warnings:
            view.add_regions(
                WARN_REGION_TAG,
                warn_region_list,
                'invalid.deprecated',
                ERROR_REGION_MARK,
                ERROR_REGION_STYLE
            )

        if self.list_errors or self.list_warnings:
            def _goto_error(choice):
                if choice != -1:
                    chosen_point = point_list[choice]
                    view.show(chosen_point)
                    if self.move_cursor:
                        view.sel().clear()
                        view.sel().add(sublime.Region(chosen_point))

            if self.include_context:
                window.show_quick_panel(
                    quick_message_list, _goto_error, sublime.MONOSPACE_FONT
                )
            else:
                window.show_quick_panel(quick_message_list, _goto_error)
Representation of aggregate value as dictionary.
dataset/ETHPy150Open Varriount/NimLime/nimlime_core/commands/nimcheck.py/NimCheckCurrentView.highlight_and_list_messages--crossover with--dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/forms/fields.py/AggregateField.python_data