void () { PsiElement targetElement = find().getParent(); assertTrue(targetElement instanceof PyDecorator); PyDecorator deco = (PyDecorator)targetElement; PyFunction decofun = deco.getTarget(); assertNotNull(decofun); assertEquals("foo", decofun.getName()); assertFalse(deco.isBuiltin()); assertFalse(deco.hasArgumentList()); }