docs: @Override
      protected void afterExecuteJavaProcess(int rc) {
          if ((rc & ExitCodes.ERROR_FLAG) != 0) {
              throw new BuildException("Execution of SpotBugs failed.");
          }
          if ((rc & ExitCodes.MISSING_CLASS_FLAG) != 0) {
              log("Classes needed for analysis were missing");
          }
          if (warningsProperty != null && (rc & ExitCodes.BUGS_FOUND_FLAG) != 0) {
              getProject().setProperty(warningsProperty, "true");
          }
  
          if (outputFileName != null) {
              log("Output saved to " + outputFileName);
          }
      }