package org.example.seed.util;

import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

public final class PhoneGenUtil {

  private static final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance();

  private PhoneGenUtil() {}

  public static PhoneDto parse(final String phoneNumber) {
    try {
      Phonenumber.PhoneNumber rawPhoneNumber = phoneNumberUtil.parse(phoneNumber, "CH");

      return PhoneDto.builder()
        .lada(Integer.toString(rawPhoneNumber.getCountryCode()))
        .phoneNumber(Long.toString(rawPhoneNumber.getNationalNumber()))
        .build();
    } catch (final NumberParseException e) {
      throw new RuntimeException("ERROR-10000");
    }
  }

  public static void parse(final List<String> phoneNumbers) { }

  @Data
  @Builder
  @NoArgsConstructor
  @AllArgsConstructor
  class PhoneDto {
    private String lada;
    private String phoneNumber;
  }
}

@@ -300,32 +300,8 @@
 r;%0A%0A
-import java.util.List;%0A%0A
 publ
@@ -904,73 +904,8 @@
  %7D%0A%0A
-  public static void parse(final List%3CString%3E phoneNumbers) %7B %7D%0A%0A
   @D
@@ -964,16 +964,23 @@
 uctor%0A  
+static 
 class Ph

set static modifier within inner class