def METHOD_NAME(self):
    copy(self, "LICENSE.txt", src=os.path.join(self.source_folder), dst=os.path.join(self.package_folder, "licenses"))
    cmake = CMake(self)
    cmake.install()
    if self.options.shared:
        rm(self, "*antlr4-runtime-static.*", os.path.join(self.package_folder, "lib"))
        rm(self, "*antlr4-runtime.a", os.path.join(self.package_folder, "lib"))
    else:
        rm(self, "*.dll", os.path.join(self.package_folder, "bin"))
        rm(self, "antlr4-runtime.lib", os.path.join(self.package_folder, "lib"))
        rm(self, "*antlr4-runtime.so*", os.path.join(self.package_folder, "lib"))
        rm(self, "*antlr4-runtime.dll*", os.path.join(self.package_folder, "lib"))
        rm(self, "*antlr4-runtime.*dylib", os.path.join(self.package_folder, "lib"))
    rmdir(self, os.path.join(self.package_folder, "share"))
    # FIXME: this also removes lib/cmake/antlr4-generator
    # This cmake config script is needed to provide the cmake function `antlr4_generate`
    rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
    fix_apple_shared_install_name(self)
    # TODO: to remove in conan v2 once cmake_find_package* generatores removed
    self._create_cmake_module_alias_targets(
        os.path.join(self.package_folder, self._module_file_rel_path),
        {"antlr4_shared" if self.options.shared else "antlr4_static": "antlr4-cppruntime::antlr4-cppruntime"}
    )