void (@NotNull String str) { if (!myInitIsDone) return; if (myModel instanceof GotoClassModel2 && isFileName(str)) { //noinspection SSBasedInspection SwingUtilities.invokeLater(() -> { GotoFileAction gotoFile = new GotoFileAction(); DataContext context = DataManager.getInstance().getDataContext(myTextField); gotoFile.actionPerformed(AnActionEvent.createFromAnAction(gotoFile, null, ActionPlaces.UNKNOWN, context)); }); } }