character = -1;
} else if( character > 0 ) {
character = visualToCharIndex( text, line, character );
}
String message = reason.endsWith( "." ) ? reason.substring( 0, reason.length() - 1 ) : reason;
return new ProblemImpl( line, character, message, code );
}