@Override
  public FileType @NotNull [] getRegisteredFileTypes() {
    instantiatePendingFileTypes();
    Collection<FileTypeWithDescriptor> descriptors = getAllFileTypeWithDescriptors();
    FileType[] result = new FileType[descriptors.size()];
    int i = 0;
    for (FileTypeManagerImpl.FileTypeWithDescriptor descriptor : descriptors) {
      result[i++] = descriptor.fileType();
    }
    return result;
  }
@Override
  public FileType @NotNull [] getRegisteredFileTypes()