LanguageOptions (String fileTypeName) { LanguageOptions res = options.get(fileTypeName); if (res != null) return res; final FileType fileType = FileTypeManager.getInstance().findFileTypeByName(fileTypeName); if (fileType == null) return new LanguageOptions(); FileType acceptableFileType = CopyrightUpdaters.INSTANCE.getRegisteredFileTypeFromLanguageHierarchy(fileType); if (acceptableFileType != null) { res = this.options.get(acceptableFileType.getName()); if (res != null) return res; } final UpdateCopyrightsProvider provider = CopyrightUpdaters.INSTANCE.forFileType(fileType); if (provider != null) return provider.getDefaultOptions(); return new LanguageOptions(); }