void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); if (element instanceof PyParameterList parameterList) { PyNamedParameter newParameter = PyElementGenerator.getInstance(project).createParameter(myParamName); parameterList.addParameter(newParameter); } }