Пример #1
0
 @NotNull
 private static PropertyAccessor createAccessor(
     int index, @NotNull Class<?> cl, @NotNull List<String> names) {
   return PropertyAccessor.findAccessor(cl, names.get(index))
       .orElseThrow(
           () ->
               new InstantiationFailureException(
                   "Could not find neither setter nor field for '" + names.get(index) + '\''));
 }