code: protected void checkRequired(String key, AnnotatedElement element) {
          if (isRequired(element)) {
              throw new PropertyLoaderException(String.format("Required property <%s> doesn't exists", key));
          }
      }
docs: Throws an exception if given element is required.
  
  @see #isRequired(AnnotatedElement)