Localization of nonlocal potentials by a Taylor expansion method