public GoogleCalendar getPrimaryCalendar ( ) { return ( GoogleCalendar ) getCalendars ( ) . stream ( ) . filter ( calendar -> ( ( GoogleCalendar ) calendar ) . isPrimary ( ) ) . findFirst ( ) . orElse ( null ) ; }
Gets the calendar marked as primary calendar for the google account .