static Map filesForNiceButtons_map = weakIdentityHashMap(); static L filesForNiceButtons(L l) { ret mapAndRecordToMap(filesForNiceButtons_map, l, func(final File f) -> TextImageAction { TextImageAction(f.getName(), #1101231, r-thread { genericUI_openFile(f) }) }); }