FileType (@NotNull VirtualFile file, @NotNull Project project) { Map<FileType, Void> data = FileBasedIndex.getInstance().getFileData(NAME, file, project); return ContainerUtil.getFirstItem(data.keySet()); }