diff --git a/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java b/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java index ca597b6392f4..16bcd50cd5f5 100644 --- a/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java @@ -372,6 +372,13 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da return null; } + @Override + public InspectionProfileEntry getToolById(String id, PsiElement element) { + if (availableInspectionTools.containsKey(id)) { + return availableInspectionTools.get(id); + } + return null; + } }; final InspectionProfileManager inspectionProfileManager = InspectionProfileManager.getInstance(); inspectionProfileManager.addProfile(profile);