private static @Nullable String getPackageName(UImportStatement statement) {
      PsiElement resolved = statement.resolve();
      if (resolved instanceof PsiPackage) {
        return ((PsiPackage)resolved).getQualifiedName();
      }
      else if (resolved != null) {
        UFile uFile = UastContextKt.getUastParentOfType(resolved, UFile.class);
        if (uFile != null) {
          return uFile.getPackageName();
        }
      }
      return null;
    }
private static @Nullable String getPackageName(UImportStatement statement)