The petitioner shall, prior to judgment, file a notice of pendency if real property or any interest therein is or may be affected by the proceeding.