message: Add findParentIfPath() to AST
diff: import { NodePath } from "@babel/traverse";
  import * as t from "@babel/types";
  -export { findScopePath, getFunctionScopePath };
  +export { findScopePath, findParentIfPath, getFunctionScopePath };
  function findScopePath(path: NodePath<t.Node | null>): NodePath | undefined {
  return path.findParent(
  @@ -19,6 +19,14 @@ function findScopePath(path: NodePath<t.Node | null>): NodePath | undefined {
  );
  }
  +function findParentIfPath(
  + path: NodePath<t.Node | null>
  +): NodePath<t.IfStatement> | undefined {
  + return path.findParent(parentPath => t.isIfStatement(parentPath)) as
  + | NodePath<t.IfStatement>
  + | undefined;
  +}
  +
  function getFunctionScopePath(path: NodePath<t.FunctionDeclaration>): NodePath {
  return path.getFunctionParent() || path.parentPath;
  }
  