public boolean isExternalFile(ProtoFile file){
  String filePath=file.getSimpleName();
  for (  String commonPath : COMMON_PROTO_PATHS) {
    if (filePath.startsWith(commonPath)) {
      return true;
    }
  }
  return false;
}

public boolean isExternalFile ( ProtoFile file ) { String filePath = file . getSimpleName ( ) ; for ( String commonPath : COMMON_PROTO_PATHS ) { if ( filePath . startsWith ( commonPath ) ) { return true ; } } return false ; }
returns true if the proto file is external to the current package . currently , it only checks the file path and thinks it is external if the file is well - known common protos .
