def select_class_paths(self, remains, class_name, class_paths, index=None):
        class_paths = class_paths or []
        manual_enter_text = "Enter Package Manually"
        if index is None:
            if len(class_paths) > 1:
                class_paths.append(manual_enter_text)
                sublime.set_timeout(
                    self.view.window().show_quick_panel(
                        class_paths,
                        lambda i: self.select_class_paths(
                            remains, class_name, class_paths, i
                        )
                    ),
                    10
                )
            else:
                self.organize_step_three_callback(
                    remains, class_name,
                    class_paths[0] if class_paths else None
                )
        elif index < 0:
            self.organize_step_three_callback(
                remains, class_name, None
            )
        elif class_paths[index] == manual_enter_text:
            self.organize_step_three_callback(
                remains, class_name, -1
            )
        else:
            self.organize_step_three_callback(
                remains, class_name, class_paths[index]
            )
dataset/ETHPy150Open spywhere/Javatar/commands/operations/organize_imports.py/JavatarOrganizeImports.select_class_paths/original