void (@NotNull IElementType eolElementType, @NotNull IElementType indentElementType) { int i = 0; int firstIndentOffset = myDelegate.getCurrentOffset(); while (myDelegate.rawLookup(i) != null && myDelegate.rawLookup(i) != eolElementType) { firstIndentOffset = myDelegate.rawTokenTypeStart(i); i--; } int lastIndentOffset = firstIndentOffset; i++; while (myDelegate.rawLookup(i) == indentElementType) { i++; lastIndentOffset = myDelegate.rawTokenTypeStart(i); } myCurrentIndent = lastIndentOffset - firstIndentOffset; }