void (@NotNull PyFunction function, @Nullable LocalQuickFix quickFix) { final PyParameterList parameterList = function.getParameterList(); final String message = PyPsiBundle.message(PyUtil.isNewMethod(function) ? "INSP.new.incompatible.to.init" : "INSP.init.incompatible.to.new"); if (quickFix != null) { registerProblem(parameterList, message, quickFix); } else { registerProblem(parameterList, message); } }