String (Language language) { EditorSettingsExternalizable settings = EditorSettingsExternalizable.getInstance(); Language base = language; while (base != null) { if (settings.hasBreadcrumbSettings(base.getID())) { return base.getID(); } base = base.getBaseLanguage(); } return language.getID(); }