private static boolean bothPackageVisibility(Symbol s1, Symbol s2) {
   return s1.isPackageVisibility() && s2.isPackageVisibility();
 }