void (@NotNull Language language) { myLanguage = language; FileType type = language.getAssociatedFileType(); if (type == null) { type = FileTypeRegistry.getInstance().getFileTypeByFileName(getNameSequence()); } setFileType(type); }