if (runTestFailure == null) {
logger.warn("Unable to set error marker - run test failure is null");
return;
}
ApexCodeLocation apexCodeLocation =
getLocationFromStackLine(runTestFailure.getName(), runTestFailure.getStackTrace());
int line = apexCodeLocation != null ? apexCodeLocation.getLine() : 0;
int charStart = apexCodeLocation != null ? apexCodeLocation.getColumn() : 0;
int charEnd = charStart + 1;
MarkerUtils.getInstance().clearRunTestFailureMarkers(resource);
MarkerUtils.getInstance().applyRunTestFailureMarker(resource, line, charStart, charEnd,
runTestFailure.getMessage());
}