code: public static List<ConnectionData> getConnectionData(Profile profile, String providerId,
                                                           TextEncryptor encryptor) throws CryptoException {
          Map<String, List<Map<String, Object>>> allConnections = profile.getAttribute(CONNECTIONS_ATTRIBUTE_NAME);
  
          if (MapUtils.isNotEmpty(allConnections)) {
              List<Map<String, Object>> connectionsForProvider = allConnections.get(providerId);
  
              if (CollectionUtils.isNotEmpty(connectionsForProvider)) {
                  List<ConnectionData> connectionDataList = new ArrayList<>(connectionsForProvider.size());
  
                  for (Map<String, Object> connectionDataMap : connectionsForProvider) {
                      connectionDataList.add(mapToConnectionData(providerId, connectionDataMap, encryptor));
                  }
  
                  return connectionDataList;
              }
          }
  
          return Collections.emptyList();
      }
docs: Returns the list of {@link ConnectionData} associated to the provider ID of
  the specified profile
  
  @param profile       the profile that contains the connection data in its attributes
  @param providerId    the provider ID of the connection
  @param encryptor     the encryptor used to decrypt the accessToken, secret and refreshToken
  
  @return the list of connection data for the provider, or empty if no connection data was found