static Map filesForNiceButtons_map = weakIdentityHashMap(); static L filesForNiceButtons(L l, final O/*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, voidfunc(final File f) { thread { genericUI_openFile(f) }}); }