def line_is_visible(self, line) -> bool:
    """
    Calculate whether the line is being shown in the editor
    """
    return self.showStartLine <= line < self.showStartLine + self.showable_line_numbers_in_editor