sbool solvableSmartQuestions2_debug; static MultiMap solvableSmartQuestions2() { Map concepts = safeLoadConcepts("#1005320"); new MultiMap map; L uls = valuesOfType(concepts, "main$UserLine"); if (solvableSmartQuestions2_debug) print("uls: " + l(uls)); for (O ul : uls) { L backRefs = cast getOptDyn(ul, "backRefs"); if (backRefs == null) { if (solvableSmartQuestions2_debug) print("No backrefs"); continue; } if (solvableSmartQuestions2_debug) print("backrefs: " + l(backRefs)); S q = getString(ul, "text"); for (O ref : backRefs) { O ua = getOptDyn(ref, "this$1"); if (ua == null) { if (solvableSmartQuestions2_debug) print("No backref value"); continue; } S cn = shortDynamicClassName(ua); if (neq(cn, "UserAnswer")) { O id = getOptDyn(ua, "id"); if (solvableSmartQuestions2_debug) print("id: " + id + ", classname: " + cn + ", " + getClassName(ua) + ", " + struct(allFields(ua))); continue; } bool solvable = getBool(ua, "solvable"); S a = getString(ua, "text"); if (!solvable) { if (solvableSmartQuestions2_debug) print("Not solvable: " + a); continue; } map.put(q, a); } } ret map; }