PyPackageRequirementsInspection (@NotNull PsiElement element) { final InspectionProfile inspectionProfile = InspectionProjectProfileManager.getInstance(element.getProject()).getCurrentProfile(); final String toolName = PyPackageRequirementsInspection.class.getSimpleName(); return (PyPackageRequirementsInspection)inspectionProfile.getUnwrappedTool(toolName, element); }