}
@Nullable
private static ErlangModuleBuildOrders getModuleBuildOrders(CompileContext context) {
Module[] modulesToCompile = context.getCompileScope().getAffectedModules();
ErlangModuleBuildOrders buildOrders = new ErlangModuleBuildOrders(modulesToCompile.length);
try {
for (Module module : modulesToCompile) {
buildOrders.myModuleBuildOrderDescriptors.add(getModuleBuildOrderInner(module));
}
} catch (CyclicDependencyFoundException e) {