void (final PyConsoleOptions.PyConsoleSettings optionsProvider) { myEditorTextField = new EditorTextField(createDocument(myProject, optionsProvider.myCustomStartScript), myProject, PythonFileType.INSTANCE) { @Override protected @NotNull EditorEx createEditor() { final EditorEx editor = super.createEditor(); editor.setVerticalScrollbarVisible(true); return editor; } @Override protected boolean isOneLineMode() { return false; } }; myStartingScriptPanel.setLayout(new BorderLayout()); myStartingScriptPanel.add(myEditorTextField, BorderLayout.CENTER); myConsoleSettings = optionsProvider; }