RunConfiguration (@NotNull Project project) { ShRunConfiguration configuration = new ShRunConfiguration(project, this, ShLanguage.INSTANCE.getID()); String defaultShell = getDefaultShell(project); configuration.setInterpreterPath(defaultShell); String projectPath = project.getBasePath(); if (projectPath != null) { configuration.setScriptWorkingDirectory(projectPath); } return configuration; }