Splitting the Java builder to avoid writing same code multiple times
The builder instance can be extracted into a dedicated reference and you'll be able to apply the common instructions on it only once, for example:

final Problem.Builder builder = new Problem().builder().locationID(condition.getLocationID());
final String indexName;
if (condition.getOwner() != null) {
  indexName = sourceLocation;
  builder.sourceLocation(condition.getSourceLocation());
} else {
  indexName = currentLocation;
  builder.currentLocation(criteria.getcurrentLocation());
}
final Problem hashProblem = builder.build();