void () { PsiClass aClass = myFixture.addClass("package a; /** @noinspection ALL*/ @org.testng.annotations.Test public class MyTestClass {void testOne(){}}"); assertFalse(new TestNGFramework().isTestMethod(aClass.getMethods()[0], false)); }