void () { if (kind != null) throw error("Unprocessed kind '" + kind + "'"); if (kindValue != null) throw error("Unprocessed kind value '" + kindValue + "'"); if (values.size() >= 1) { String valid = String.join(", ", validValues); String msg = "Unprocessed %s '%s', %s".formatted( values.size() > 1 ? "values" : "value", String.join(", ", values.keySet()), validValues.size() > 1 ? "valid values are '" + valid + "'" : validValues.size() == 1 ? "the only valid value is '" + valid + "'" : "the breakpoint takes no values"); throw error(msg, index.get(values.keySet().iterator().next())); } }