docs: protected void checkSurefirePlugin(Plugin plugin, String[] nonSupportedVersions, String minSupported) throws MojoExecutionException {
          // Check if plugin is available.
          if (plugin == null) {
              throw new MojoExecutionException("Surefire plugin not avaialble");
          }
          String version = plugin.getVersion();
          for (String nonSupportedVersion : nonSupportedVersions) {
              if (version.equals(nonSupportedVersion)) {
                  throw new MojoExecutionException("Not supported surefire version; version has to be " + minSupported + " or higher");
              }
          }
      }