Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git] / python / src / com / jetbrains / python / inspections / PyPackageRequirementsInspection.java
index 31bd6d7cbf50f8ce5d76325764b2f8206edb8722..67d0ef5e71da8971166becfefbe1cb0fb74d4999 100644 (file)
@@ -77,7 +77,7 @@ public class PyPackageRequirementsInspection extends PyInspection {
 
   @Nullable
   public static PyPackageRequirementsInspection getInstance(@NotNull PsiElement element) {
-    final InspectionProfile inspectionProfile = InspectionProjectProfileManager.getInstance(element.getProject()).getInspectionProfile();
+    final InspectionProfile inspectionProfile = InspectionProjectProfileManager.getInstance(element.getProject()).getCurrentProfile();
     final String toolName = PyPackageRequirementsInspection.class.getSimpleName();
     return (PyPackageRequirementsInspection)inspectionProfile.getUnwrappedTool(toolName, element);
   }
@@ -458,7 +458,7 @@ public class PyPackageRequirementsInspection extends PyInspection {
             }
           }
           if (changed) {
-            final InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getInspectionProfile();
+            final InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile();
             InspectionProfileManager.getInstance().fireProfileChanged(profile);
           }
         }