<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_typecheck_complete(self, call_id, payload):
 """Handles ``NewScalaNotesEvent```. Calls editor to display/highlight line notes and clears notes buffer. """

        self.log.debug('handle_typecheck_complete: in')
        if not self.currently_buffering_typechecks:
            self.log.debug('Completed typecheck was not requested by user, not displaying notes')
            return

        self.editor.display_notes(self.buffered_notes)
        self.currently_buffering_typechecks = False
        self.buffered_notes = []