1 package com
.intellij
.openapi
.vcs
.impl
;
3 import org
.jetbrains
.annotations
.Nullable
;
5 import java
.util
.Collection
;
6 import java
.util
.HashSet
;
9 public class CollectionsDelta
{
10 private CollectionsDelta() {
14 public static <T
> Set
<T
> notInSecond(final Collection
<T
> first
, final Collection
<T
> second
) {
15 Set
<T
> notInSecond
= null;
16 for (T topItem
: first
) {
17 if (! second
.contains(topItem
)) {
18 if (notInSecond
== null) {
19 notInSecond
= new HashSet
<T
>();
21 notInSecond
.add(topItem
);