package org.jetbrains.plugins.terminal;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;

/**
 * @author traff
 */
public class TerminalToolWindowFactory implements ToolWindowFactory {
  @Override
  public void createToolWindowContent(Project project, ToolWindow toolWindow) {
    TerminalView terminalView = TerminalView.getInstance();
    terminalView.initTerminal(project, toolWindow);
  }
}

package org.jetbrains.plugins.terminal;

import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;

/**
 * @author traff
 */
public class TerminalToolWindowFactory implements ToolWindowFactory, DumbAware {
  @Override
  public void createToolWindowContent(Project project, ToolWindow toolWindow) {
    TerminalView terminalView = TerminalView.getInstance();
    terminalView.initTerminal(project, toolWindow);
  }
}

Work while indexing (PY-10618).