ModCommand (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement context = descriptor.getPsiElement(); return ModCommand.updateOption(context, new PyUnresolvedReferencesInspection(), inspection -> { String name = myIdentifier.toString(); if (myIgnoreAllAttributes) { name += PyNames.END_WILDCARD; } if (!inspection.ignoredIdentifiers.contains(name)) { inspection.ignoredIdentifiers.add(name); } }); }