code: @Override
      public void verify(Context context, Path file) throws VerifyException, IOException {
          if (!Files.isRegularFile(file) || Files.size(file) == 0) {
              throw new VerifyException("File {} is not a regular file or has size 0", file);
          }
      }
docs: Verifies a plugin release according to certain rules
  
  @param context the file verifier context object
  @param file    the path to the downloaded file itself
  @throws IOException     if there was a problem accessing file
  @throws VerifyException in case of problems verifying the file