void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile(); profile.modifyToolSettings(myInspectionKey, element, tool -> tool.addEntry(myName)); }