
package com.jetbrains.python.codeInsight.postfix;

import com.intellij.codeInsight.template.postfix.templates.SurroundPostfixTemplateBase;
import com.intellij.lang.surroundWith.Surrounder;
import com.jetbrains.python.refactoring.surround.surrounders.expressions.PyIfExpressionSurrounder;
import org.jetbrains.annotations.NotNull;

public class PyIfPostfixTemplate extends SurroundPostfixTemplateBase {

  public PyIfPostfixTemplate() {
    super("if", "if expr", PyPostfixUtils.PY_PSI_INFO, PyPostfixUtils.selectorTopmost());
  }

  @NotNull
  @Override
  protected Surrounder getSurrounder() {
    return new PyIfExpressionSurrounder();
  }
}
