def _IsFirstNonWhitespaceTokenInLine(self, token):
    if token.type in (Type.WHITESPACE, Type.BLANK_LINE):
      return False
    if token.IsFirstInLine():
      return True
    return (token.previous and token.previous.IsFirstInLine() and
            token.previous.type == Type.WHITESPACE)
Determines if the given token is the first non-space token on its line.
dataset/ETHPy150Open google/closure-linter/closure_linter/indentation.py/IndentationRules._IsFirstNonWhitespaceTokenInLine