void () { final List<String> suggested = doTestByFile(); assertNotNull(suggested); assertContainsElements(suggested, PyNames.METHOD_SPECIAL_ATTRIBUTES); final Set<String> functionAttributes = new HashSet<>(PyNames.FUNCTION_SPECIAL_ATTRIBUTES); functionAttributes.removeAll(PyNames.METHOD_SPECIAL_ATTRIBUTES); assertDoesntContain(suggested, functionAttributes); }