private TextPart GetNextPartWithConditions(CharacterType characterType) { var text = new StringBuilder(); while (ContainsAnyLetters() && GetTypeNextCharacter() == characterType) { text.Append(GetNextSymbol()); ClearLastReadLetter(); } return(new TextPart(text.ToString(), characterType.BelongsTo())); }