boolean () { if (myCredentialHelperShouldBeUsed) { return false; } ProviderAndData providerAndData = myProviderAndData; return providerAndData != null && providerAndData.getProvider() instanceof CancelledProvider; }