public static void createInitPyInHierarchy(@NotNull PsiDirectory created, @NotNull PsiDirectory ancestor) {
    if (created.equals(ancestor)) {
      createInitPy(created);
      return;
    }
    do {
      createInitPy(created);
      created = created.getParent();
    }
    while (created != null && !created.equals(ancestor));
  }
public static void createInitPyInHierarchy(@NotNull PsiDirectory created, @NotNull PsiDirectory ancestor)