private static boolean isNativeFileType(VirtualFile file) {
    FileType type = file.getFileType();

    if (type instanceof INativeFileType) {
      return ((INativeFileType)type).useNativeIcon();
    }
    return type instanceof UnknownFileType && !file.isDirectory();
  }
private static boolean isNativeFileType(VirtualFile file)