docs: protected Set<String> resumePreviousByProcessDefinitionKey(CommandContext commandContext, DeploymentEntity deployment, Set<String> processKeysToRegisterFor) {
      Set<String> processDefinitionKeys = new HashSet<String>(processKeysToRegisterFor);
  
      List<? extends ProcessDefinition> deployedProcesses = getDeployedProcesses(deployment);
      for (ProcessDefinition deployedProcess : deployedProcesses) {
        if (deployedProcess.getVersion() > 1) {
          processDefinitionKeys.add(deployedProcess.getKey());
        }
      }
  
      return findDeploymentIdsForProcessDefinitions(commandContext, processDefinitionKeys);
    }