public static List<ChallengeInputType> createFrom(List<DataType> inputTypes) { List<ChallengeInputType> challengeInputTypes = new ArrayList<>(); for (DataType inputType : inputTypes) { ChallengeInputType challengeInputType = new ChallengeInputType(); challengeInputType.setInputType(inputType); challengeInputTypes.add(challengeInputType); } prioritize(challengeInputTypes); return challengeInputTypes; }