Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git] / python / src / com / jetbrains / python / inspections / PyPackageRequirementsInspection.java
index 2ae69d0dd8979b76eec2e60e1f795bf6c0e4fd29..c36f84fb3b777d7481969d171fc47aafa3a6e2b6 100644 (file)
@@ -76,7 +76,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);
   }
@@ -444,7 +444,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);
           }
         }