static bool anyValueIgrep(Map map, S pat) { for (O val : values(map)) if (val instanceof S && igrep((S) val, pat)) true; false; }