boolean (@Nullable String name) { if (name == null || name.isEmpty()) return false; if (Character.isUpperCase(name.charAt(0)) && (name.length() == 1 || !Character.isUpperCase(name.charAt(1)))) return false; return true; }