void (@Nullable CredentialAttributes credentialAttributes, @Nullable String credentialUser, @Nullable String secretValue, @NotNull Consumer<? super String> unsafeSetter) { if (credentialAttributes != null) { PasswordSafe.getInstance().set(credentialAttributes, new Credentials(credentialUser, secretValue), false); unsafeSetter.accept(null); } else { unsafeSetter.accept(secretValue); } }