def METHOD_NAME(platforms):
  """Returns filter based on platform or empty if all platforms are enabled."""
  tags = []
  if "CLOSURE" not in platforms:
    tags += ["-j2cl"]
  if "WASM" not in platforms:
    tags += ["-j2wasm"]
  if "JVM" not in platforms:
    tags += ["-jvm"]
  if "J2KT" not in platforms:
    tags += ["-j2kt"]
  return ["--build_tests_only"
         ] + (["--test_tag_filters=" + ",".join(tags)] if tags else [])