String (Object runConfigOrSourceType) { if (runConfigOrSourceType instanceof RunnerAndConfigurationSettings) { return ((RunnerAndConfigurationSettings)runConfigOrSourceType).getName(); } if (runConfigOrSourceType instanceof SingletonDeploymentSourceType) { String displayName = ((SingletonDeploymentSourceType)runConfigOrSourceType).getPresentableName(); return CloudBundle.message("create.new.deployment.configuration.for.singleton.type", displayName); } return CloudBundle.message("create.new.deployment.configuration.generic"); }