Equations (EKey methodKey, List<Equation> rawMethodEquations) { List<DirectionResultPair> compressedMethodEquations = ContainerUtil.map(rawMethodEquations, equation -> new DirectionResultPair(equation.key.dirKey, equation.result)); return new Equations(compressedMethodEquations, methodKey.stable); }