boolean (DataContext context, String search, Function<? super ColorAndFontOptions, ? extends SearchableConfigurable> function) { Settings settings = Settings.KEY.getData(context); if (settings == null) return false; ColorAndFontOptions options = settings.find(ColorAndFontOptions.class); if (options == null) return false; SearchableConfigurable page = function.apply(options); if (page == null) return false; settings.select(page, search); return true; }