void (final String text) { if (!isToShowTextField()) return; if (myPathTextField.isPathUpdating()) return; if (text == null) return; myUiUpdater.queue(new Update("treeFromPath.1") { @Override public void run() { ApplicationManager.getApplication().executeOnPooledThread(() -> { LookupFile toFind = myPathTextField.getFile(); if (toFind instanceof LocalFsFinder.VfsFile && toFind.exists()) { myUiUpdater.queue(new Update("treeFromPath.2") { @Override public void run() { selectInTree(((LocalFsFinder.VfsFile)toFind).getFile(), text); } }); } }); } }); }