PyChangeSignatureQuickFix (@NotNull PyFunction function, @NotNull PyFunction complementary) { final int paramLength = function.getParameterList().getParameters().length; final int complementaryParamLength = complementary.getParameterList().getParameters().length; final List<Pair<Integer, PyParameterInfo>> extraParams; if (complementaryParamLength > paramLength) { extraParams = Collections.singletonList(Pair.create(paramLength - 1, new PyParameterInfo(NEW_PARAMETER, "**kwargs", "", false))); } else { extraParams = Collections.emptyList(); } return new PyChangeSignatureQuickFix(function, extraParams, null); }