code: static Set<String> getAmbiguousMethods(List<InterfaceInfo> interfaceInfoList) {
          Set<String> ambiguousNames = new HashSet<>();
          Set<String> dummy = new HashSet<>();
          List<String> interfaceMethods = getAllInterfaceMethodInfo(interfaceInfoList);
  
          interfaceMethods.forEach(interfaceMethod -> {
              boolean methodNameAlreadyPresent = dummy.add(interfaceMethod);
  
              if (!methodNameAlreadyPresent){
                  ambiguousNames.add(interfaceMethod);
              }
          });
  
          return ambiguousNames;
      }
docs: Obtains a {@link Set} of ambiguous names from a given interface hierarchy.
  @param interfaceInfoList A {@link List} of {@link InterfaceInfo} containing interface information.
  @return A {@link Set} of ambiguous method names.