void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (element != null) { InspectionProfileModifiableModelKt.modifyAndCommitProjectProfile(project, it -> { final String toolName = PyShadowingBuiltinsInspection.class.getSimpleName(); final PyShadowingBuiltinsInspection inspection = (PyShadowingBuiltinsInspection)it.getUnwrappedTool(toolName, element); if (inspection != null) { if (!inspection.ignoredNames.contains(myName)) { inspection.ignoredNames.add(myName); } } }); } }