boolean (VirtualFile file) { FileType type = file.getFileType(); if (type instanceof INativeFileType) { return ((INativeFileType)type).useNativeIcon(); } return type instanceof UnknownFileType && !file.isDirectory(); }