List<PyNamedParameter> (PyParameterList plist) { final List<PyNamedParameter> result = new ArrayList<>(10); // a random 'enough' walkDownParamArray( plist.getParameters(), new ParamVisitor() { @Override public void visitNamedParameter(PyNamedParameter param, boolean first, boolean last) { result.add(param); } } ); return result; }