when gradle/maven project is opened in headless mode (e.g. to run offline inspections...