int () { int indent = 0; while (getBaseTokenType() != null && PyTokenTypes.WHITESPACE_OR_LINEBREAK.contains(getBaseTokenType())) { if (getBaseTokenType() == PyTokenTypes.TAB) { indent = ((indent / 8) + 1) * 8; } else if (getBaseTokenType() == PyTokenTypes.SPACE) { indent++; } else if (getBaseTokenType() == PyTokenTypes.LINE_BREAK) { indent = 0; } advanceBase(); } if (getBaseTokenType() == null) { return 0; } return indent; }