Custom PHP Storm validation