BuildRange (@Nullable String sinceVal, @Nullable String untilVal) { BuildNumber since = BuildNumber.fromString(sinceVal); BuildNumber until = BuildNumber.fromString(untilVal); return since != null && until != null ? new BuildRange(since, until) : null; }