docs: protected boolean isRestoreGoalPresent() {
          Plugin ekstaziPlugin = lookupPlugin(EKSTAZI_PLUGIN_KEY);
          if (ekstaziPlugin == null) {
              return false;
          }
          for (Object execution : ekstaziPlugin.getExecutions()) {
              for (Object goal : ((PluginExecution) execution).getGoals()) {
                  if (((String) goal).equals("restore")) {
                      return true;
                  }
              }
          }
          return false;
      }