FileType () { CachedFileType cache = myFileType; FileType type = cache == null ? null : cache.getUpToDateOrNull(); if (type == null) { type = super.getFileType(); myFileType = CachedFileType.forType(type); } return type; }