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