diff --git a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/PerformanceProjectsTest.kt b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/PerformanceProjectsTest.kt index 92dbb0f72d8..908a5b1ffe9 100644 --- a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/PerformanceProjectsTest.kt +++ b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/PerformanceProjectsTest.kt @@ -10,7 +10,6 @@ import com.intellij.lang.annotation.AnnotationHolder import com.intellij.openapi.project.Project import com.intellij.openapi.util.Disposer import com.intellij.psi.PsiElement -import com.intellij.testFramework.propertyBased.MadTestingUtil import org.jetbrains.kotlin.idea.core.script.ScriptConfigurationManager import org.jetbrains.kotlin.idea.highlighter.KotlinPsiChecker import org.jetbrains.kotlin.idea.highlighter.KotlinPsiCheckerAndHighlightingUpdater @@ -235,7 +234,7 @@ class PerformanceProjectsTest : AbstractPerformanceProjectsTest() { val project = myProject!! val disposable = Disposer.newDisposable("perfKtsFileAnalysis $fileName") - MadTestingUtil.enableAllInspections(project, disposable) + enableAllInspectionsCompat(project, disposable) replaceWithCustomHighlighter() diff --git a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt index 988329c546f..1f21d3bdde1 100644 --- a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt +++ b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt @@ -3,7 +3,18 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +@file:Suppress("UNUSED_PARAMETER") + package org.jetbrains.kotlin.idea.perf +import com.intellij.openapi.Disposable +import com.intellij.openapi.project.Project +import com.intellij.testFramework.propertyBased.MadTestingUtil + // BUNCH: 193 -typealias TestApplicationManager = com.intellij.idea.IdeaTestApplication \ No newline at end of file +fun enableAllInspectionsCompat(project: Project, disposable: Disposable) { + MadTestingUtil.enableAllInspections(project, disposable) +} + +// BUNCH: 193 +typealias TestApplicationManager = com.intellij.idea.IdeaTestApplication diff --git a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt.201 b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt.201 index 0ae93fddca0..169f9061dc1 100644 --- a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt.201 +++ b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/compat.kt.201 @@ -3,7 +3,18 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +@file:Suppress("UNUSED_PARAMETER") + package org.jetbrains.kotlin.idea.perf +import com.intellij.openapi.Disposable +import com.intellij.openapi.project.Project +import com.intellij.testFramework.propertyBased.MadTestingUtil + +// BUNCH: 193 +fun enableAllInspectionsCompat(project: Project, disposable: Disposable) { + MadTestingUtil.enableAllInspections(project) +} + // BUNCH: 193 typealias TestApplicationManager = com.intellij.testFramework.TestApplicationManager \ No newline at end of file