void (MavenWorkspaceSettings settings) { MavenImportingSettings importingSettings = settings.getImportingSettings(); if (importingSettings.isImportAutomatically()) { importingSettings.setImportAutomatically(false); ExternalSystemProjectTrackerSettings projectTrackerSettings = ExternalSystemProjectTrackerSettings.getInstance(myProject); projectTrackerSettings.setAutoReloadType(ExternalSystemProjectTrackerSettings.AutoReloadType.ALL); } }