public static boolean hasSafeCredentials(@Nullable CredentialAttributes credentialAttributes) {
    return credentialAttributes != null && PasswordSafe.getInstance().get(credentialAttributes) != null;
  }
public static boolean hasSafeCredentials(@Nullable CredentialAttributes credentialAttributes)