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