def _classify_code_elements(self, code_elements):
        class_code_elements = []
        method_code_elements = []
        field_code_elements = []
        for element in code_elements:
            kind = element.kind
            if kind in self.class_kinds:
                class_code_elements.append(element)
            elif kind == self.method_kind:
                method_code_elements.append(element)
            elif kind in self.field_kinds:
                field_code_elements.append(element)

        # Debug
        #print(len(class_code_elements), len(method_code_elements),
                #len(field_code_elements))

        return (class_code_elements, method_code_elements, field_code_elements)
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py/JavaGenericLinker._classify_code_elements/original