The inspections in PhpStorm flag up constants that it cannot find, such as those in the database, as errors.
As far as I can tell, the only way to stop these errors is to have the database constants (configuration_keys) duplicated in a file that PhpStorm CAN find/index.
So I did a script that generates a suitable file:
https://github.com/torvista/zen-cart...tion-constants
Constructive criticism welcome!
Bookmarks