How can a planetary nebula be identified?