int (List<String> strings, IntSupplier supplier) { boolean seen = false; int best = 0; for (String string : strings) { int length = string.length(); if (!seen || length < best) { seen = true; best = length; } } return seen ? best : supplier.getAsInt(); }