boolean (VFileEvent event) { if (event instanceof VFileCreateEvent) { return ((VFileCreateEvent)event).isDirectory(); } VirtualFile file = event.getFile(); return file == null || file.isDirectory(); }