code: private void lockFlowsForProject(Project project, List<String> lockedFlows) {
      for (String flowId: lockedFlows) {
        Flow flow = project.getFlow(flowId);
        if (flow != null) {
          flow.setLocked(true);
        }
      }
    }
docs: Lock the specified flows for the project.
  
  @param project the project
  @param lockedFlows list of flow IDs of flows to lock