UnusedDeclarationInspectionBase (@NotNull PsiElement element) { InspectionProfile profile = InspectionProjectProfileManager.getInstance(element.getProject()).getCurrentProfile(); UnusedDeclarationInspectionBase tool = (UnusedDeclarationInspectionBase)profile.getUnwrappedTool(SHORT_NAME, element); return tool == null ? new UnusedDeclarationInspectionBase() : tool; }