If a property necessary for a project is already appropriated to a public use and the proposed use is incompatible with the existing use, the court determines which agency has priority and which use ...