1)
staff.stream().filter(e -> e.getWorkStart().getYear() == 117).max(Comparator.comparing(Employee::getSalary)).ifPresent(System.out::println);
2)
Calendar calendar = Calendar.getInstance();
calendar.set(2017, Calendar.JANUARY, 1);
Calendar calendar1 = Calendar.getInstance();
calendar1.set(2017, Calendar.DECEMBER, 31);
staff.stream().filter(e -> e.getWorkStart().after(calendar.getTime()) && e.getWorkStart().before(calendar1.getTime())).max(Comparator.comparing(Employee::getSalary)).ifPresent(System.out::println);