def METHOD_NAME(
    self,
    files: List[str],
    file_path: str,
    file_name: str,
    results_filter: Optional[ObjectType],
) -> None:
    filtered = ["__pycache__", "__init__.py"]
    is_group = self.is_group(file_path)
    is_config = self.is_config(file_path)
    if (
        is_group
        and (results_filter is None or results_filter == ObjectType.GROUP)
        and file_name not in filtered
    ):
        files.append(file_name)
    if (
        is_config
        and file_name not in filtered
        and (results_filter is None or results_filter == ObjectType.CONFIG)
    ):
        # strip extension
        last_dot = file_name.rfind(".")
        if last_dot != -1:
            file_name = file_name[0:last_dot]
        files.append(file_name)