445675 Honor workspace autobuild for refreshes caused by pom changes

Signed-off-by: Anton Tanasenko <atg.sleepless@gmail.com>
Actually, these checks go the other way around. In tests for test435692_affected_changes (where this method originally comes from) it is asserted that events strictly come from specific set of projects.
So a Set<IProject> getProjectsFromEvents(events) with a usage like getProjectsFromEvents(events).size and/or .containsAll is more useful.