void () { String name = getTestName(false); configureByFile(BASE_DIR + "before" + name + ".java"); int offset = getEditor().getCaretModel().getOffset(); PsiElement context = getFile().findElementAt(offset); final PsiClass aClass = PsiTreeUtil.getParentOfType(context, PsiClass.class); assertTrue(aClass != null && aClass.isAnnotationType()); final JavaOverrideMethodsHandler handler = new JavaOverrideMethodsHandler(); assertTrue(handler.isValidFor(getEditor(), getFile())); assertFalse(handler.isAvailableForQuickList(getEditor(), getFile(), new MapDataContext())); }