private static boolean isVisibleIn(final ClassRepr c, final ProtoMember m, final ClassRepr scope) {
    final boolean privacy = m.isPrivate() && c.name != scope.name;
    final boolean packageLocality = m.isPackageLocal() && !Objects.equals(c.getPackageName(), scope.getPackageName());
    return !privacy && !packageLocality;
  }
private static boolean isVisibleIn(final ClassRepr c, final ProtoMember m, final ClassRepr scope)