static L filterMethodsByParameterCount(Collection l, final int count) { ret [Method m : l | l(m.getParameterTypes()) == count]; }