private static boolean bothPublic(Symbol s1, Symbol s2) {
   return s1.isPublic() && s2.isPublic();
 }