code: def get_platform_for_target(self, target):
      
      if not target.payload.platform and target.is_synthetic:
        derived_from = target.derived_from
        platform = derived_from and getattr(derived_from, 'platform', None)
        if platform:
          return platform
      return self.get_platform_by_name(target.payload.platform, target)
docs: Find the platform associated with this target.
  
      :param JvmTarget target: target to query.
      :return: The jvm platform object.
      :rtype: JvmPlatformSettings