MavenSettings () { try { MavenSettings clone = (MavenSettings)super.clone(); clone.myGeneralSettings = ObjectUtils.doIfNotNull(myGeneralSettings, MavenGeneralSettings::clone); clone.myRunnerSettings = ObjectUtils.doIfNotNull(myRunnerSettings, MavenRunnerSettings::clone); clone.myRunnerParameters = ObjectUtils.doIfNotNull(myRunnerParameters, MavenRunnerParameters::clone); return clone; } catch (CloneNotSupportedException e) { throw new Error(e); } }