PyNamedParameter (@NotNull final String name) { final Ref<PyNamedParameter> result = new Ref<>(); ParamHelper.walkDownParamArray(getParameters(), new ParamHelper.ParamVisitor() { @Override public void visitNamedParameter(PyNamedParameter param, boolean first, boolean last) { if (name.equals(param.getName())) { result.set(param); } } }); return result.get(); }