if (startOfLine) {
String followingCharacter = matcher.group(2);
if (followingCharacter == null || !followingCharacter.equals(" ")) {
int problemLength = matcher.end(1)-start;
String matched = matcher.group(1);
return new ValidationProblem(ValidationProblem.Severity.WARNING,String.format("'%s' will not start a new block unless it is followed by a space character (' ')",matched),start,problemLength);
}
}
}
return null;
}