FileType (@NotNull FileType fromContent, @Nullable FileType fileTypeByName) { return fromContent == PlainTextFileType.INSTANCE && fileTypeByName == DetectedByContentFileType.INSTANCE ? DetectedByContentFileType.INSTANCE : fromContent; }