static Map filesForNiceButtons_map = weakIdentityHashMap(); static L filesForNiceButtons(L l, final VF1 action) { ret mapAndRecordToMap_reversed(filesForNiceButtons_map, l, func(final File f) -> TextImageAction { TextImageAction(f.getName(), isImageFile(f) ? #1101250 : #1101231, r { pcallF(action, f) }) }); } static L filesForNiceButtons(L l) { ret filesForNiceButtons(l, r-thread { genericUI_openFile(f) }); }