IndentInside (final @Nullable CharSequence lastLine) { final IndentInside result = new IndentInside(); if (lastLine == null) { return result; } for (int i = 0; i < lastLine.length(); i++) { if (lastLine.charAt(i) == ' ') result.whiteSpaces += 1; if (lastLine.charAt(i) == '\t') result.tabs += 1; } return result; }