void (@Nullable VirtualFile toSelect, @NotNull Consumer<? super List<VirtualFile>> callback) { myPanel.load(FileChooserUtil.getInitialPath(myDescriptor, myProject, toSelect)); show(); if (myResults != null) { callback.consume(myResults); } else if (callback instanceof FileChooser.FileChooserConsumer) { ((FileChooser.FileChooserConsumer)callback).cancelled(); } }