use a non-deprecated API

This commit is contained in:
Dmitry Jemerov
2016-10-27 12:49:54 +02:00
parent 0910f166a5
commit 38a448ebbd
@@ -95,7 +95,7 @@ abstract class SelfTargetingIntention<TElement : PsiElement>(
val inspection = findInspection(this.javaClass.kotlin) ?: return false
val key = HighlightDisplayKey.find(inspection.shortName)
if (!InspectionProjectProfileManager.getInstance(project).getInspectionProfile(target).isToolEnabled(key)) {
if (!InspectionProjectProfileManager.getInstance(project).inspectionProfile.isToolEnabled(key, target)) {
return false
}