code: protected Object extractFromOptional(Optional<?> optionalList) {
          if (optionalList.isPresent()) {
              return optionalList.get();
          }
          
          return Collections.emptyList();
      }
docs: /*
  Helper methods