Ways to measure the hairpin diagram in charmed meson decays