LanguageOptions (String name) { try { LanguageOptions lang = getOptions(name).clone(); LanguageOptions temp = getTemplateOptions().clone(); switch (lang.getFileTypeOverride()) { case LanguageOptions.USE_TEMPLATE -> { temp.setFileLocation(lang.getFileLocation()); temp.setFileTypeOverride(lang.getFileTypeOverride()); lang = temp; } case LanguageOptions.USE_TEXT -> { } } return lang; } catch (CloneNotSupportedException e) { // This shouldn't happen } return null; }