code: private boolean isMatchingFileExtension() {
      String[] fileExtensions = mediaArgs.getFileExtensions();
      if (fileExtensions == null || fileExtensions.length == 0) {
        return true;
      }
      for (String fileExtension : fileExtensions) {
        if (StringUtils.equalsIgnoreCase(fileExtension, getFileExtension())) {
          return true;
        }
      }
      return false;
    }
docs: Checks if the file extension of the current binary matches with the requested extensions from the media args.
  @return true if file extension matches