void () { final PyFile file = getTestFile(); final PyFunction func = file.findTopLevelFunction("func"); assertNotNull(func); PyDecoratorList decorators = func.getDecoratorList(); assertNotNull(decorators); List<@Nullable String> names = ContainerUtil.map(decorators.getDecorators(), d -> ObjectUtils.doIfNotNull(d.getQualifiedName(), QualifiedName::toString)); assertEquals(names, Arrays.asList(null, "foo", "foo", "foo.bar", "foo.bar", null, null, null)); assertNotParsed(file); }