How to detect development / production mode during runtime

Hi,

how can I detect - programmatically - during runtime if Vaadin (14) is running in development or production mode?

Thanks and kind regards,

Martin

VaadinService.getCurrent().getDeploymentConfiguration().isProductionMode()

Thanks a lot!