void (RemoteSdkAdditionalData data, CredentialsCase... cases) { for (CredentialsCase credentialsCase : cases) { if (credentialsCase.getType() == this) { T credentials = createCredentials(); credentialsCase.process(credentials); data.setCredentials(getCredentialsKey(), credentials); } } }