1 // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
2 package com.intellij.internal.statistic.collectors.fus.fileTypes;
4 import com.intellij.openapi.vfs.VirtualFile;
5 import org.jetbrains.annotations.NotNull;
7 public interface FileTypeUsageSchemaDescriptor {
9 * Is used to categorise file types usage statistics.
10 * If a file has some generic file type (e.g. XML), this method allow specifying its 'schema' more precisely, e.g `Maven` or `Spring`.
12 * @return true if the given file has the schema name, given in the `schema` attribute of the `FileTypeUsageSchemaDescriptor` extension.
14 boolean describes(@NotNull VirtualFile file);