pub async fn load(file_path: impl Into<PathBuf>) -> anyhow::Result<Self> {
        let file_path = file_path.into();
        // If doesn't exist, return default.
        if !file_path.exists() {
            return Ok(Self::default());
        }

        let file = tokio::fs::read(&file_path)
            .await
            .context("Failed to read file")?;
        let selectors: Selectors =
            serde_json::from_slice(&file).context("Failed to deserialize file")?;
        let selectors_before = selectors.len();
        Ok(Self {
            file_path,
            selectors,
            selectors_before,
            analyzed_files: 0,
        })
    }
Loads the selectors from the file, or returns a new instance if the file doesn't exist.
core/bin/selector_generator/src/app.rs