def METHOD_NAME(self) -> Optional:
    """
    Get internal blender text buffer for logging.
    """
    try:
        return bpy.data.texts.get(self.buffer_name) \
               or bpy.data.texts.new(name=self.buffer_name)
    except AttributeError as e:
        # logging.debug("Can't initialize logging to internal buffer: get_log_buffer is called too early: {}".format(e))
        return None