public void register() {
        if (!isRegistered) {
            VirtualFileManager.getInstance().addAsyncFileListener((@NotNull List<? extends VFileEvent> events) -> {
                for (VFileEvent event : events) {
                    if (event instanceof VFileDeleteEvent) {
                        // TODO run configuration icon change
                        System.out.println("deleted : " + event.getFile());
                    }
                }
                return null;
            }, () -> {});
            isRegistered = true;
        }
    }
public void register() {
        if (!isRegistered) {
            VirtualFileManager.getInstance().addAsyncFileListener((@NotNull List<? extends VFileEvent> events) -> {
                for (VFileEvent event : events) {
                    if (event instanceof VFileDeleteEvent) {
                       
                        System.out.println("deleted : " + event.getFile());
                    }
                }
                return null;
            }, () -> {});
            isRegistered = true;
        }
    }
public void register() { if (!isregistered) { virtualfilemanager.getinstance().addasyncfilelistener((@notnull list<? extends vfileevent> events) -> { for (vfileevent event : events) { if (event instanceof vfiledeleteevent) { system.out.println("deleted : " + event.getfile()); } } return null; }, () -> {}); isregistered = true; } }