TerminalWidget (@Nullable String workingDirectory, @Nullable @Nls String tabName, boolean requestFocus, boolean deferSessionStartUntilUiShown) { TerminalTabState tabState = new TerminalTabState(); tabState.myTabName = tabName; tabState.myWorkingDirectory = workingDirectory; return createNewSession(myTerminalRunner, tabState, requestFocus, deferSessionStartUntilUiShown); }