app/src/main/java/org/andstatus/app/account/MyAccounts.java
/**
     * Return verified and autoSynced MyAccounts for the Origin
     * @param origin May be empty to search in any Origin
     * @return Empty Set if not found
     */
Return verified and autoSynced MyAccounts for the Origin
@param origin May be empty to search in any Origin
@return Empty Set if not found
Return verified and autoSynced MyAccounts for the Origin @param origin May be empty to search in any Origin @return Empty Set if not found
@NonNull
    public Set<MyAccount> succeededForSameOrigin(Origin origin) {
        return origin.isEmpty()
                ? myAccounts.stream().filter(MyAccount::isValidAndSucceeded).collect(Collectors.toSet())
                : myAccounts.stream()
                .filter(ma -> origin.equals(ma.getOrigin()))
                .filter(MyAccount::isValidAndSucceeded)
                .collect(Collectors.toSet());
    }
@ NonNull public Set < MyAccount > succeededForSameOrigin ( Origin origin ) { return origin . isEmpty ( ) ? myAccounts . stream ( ) . filter ( MyAccount :: isValidAndSucceeded ) . collect ( Collectors . toSet ( ) ) : myAccounts . stream ( ) . filter ( ma -> origin . equals ( ma . getOrigin ( ) ) ) . filter ( MyAccount :: isValidAndSucceeded ) . collect ( Collectors . toSet ( ) ) ; }
Return verified and autoSynced MyAccounts for the Origin
 @param origin May be empty to search in any Origin
 @return Empty Set if not found
Return verified and autoSynced MyAccounts for the Origin @param origin May be empty to search in any Origin @return Empty Set if not found