@Contract("null -> null")
  @Nullable
  public static PsiElement turnInitIntoDir(@Nullable PsiElement target) {
    if (target instanceof PyFile && isPackage((PsiFile)target)) {
      return ((PsiFile)target).getContainingDirectory();
    }
    return target;
  }
@Contract("null -> null")
  @Nullable
  public static PsiElement turnInitIntoDir(@Nullable PsiElement target)