'Extracts interesting paths from a given path.
Args:
components: Source string represented as a list of components.
Returns:
A list of extracted paths (as strings).'

def Extract(self, components):

    for (index, component) in enumerate(components):
        if component.lower().endswith(self.EXECUTABLE_EXTENSIONS):
            extracted_path = '    '.join(components[0:(index + 1)])
            return [extracted_path]
    return []
