diff --git a/java/openapi/src/com/intellij/codeInsight/TestUtil.java b/java/openapi/src/com/intellij/codeInsight/TestUtil.java index 45e980e1aa32..b22d4f2f211f 100644 --- a/java/openapi/src/com/intellij/codeInsight/TestUtil.java +++ b/java/openapi/src/com/intellij/codeInsight/TestUtil.java @@ -60,4 +60,13 @@ public class TestUtil { } return null; } + + public static boolean isTestMethodOrConfig(PsiMethod psiMethod) { + for (TestFramework framework : Extensions.getExtensions(TEST_FRAMEWORK)) { + if (framework.isTestMethodOrConfig(psiMethod)) { + return true; + } + } + return false; + } } \ No newline at end of file