VCS: file changed remotely hint
[fedora-idea.git] / vcs-impl / src / com / intellij / openapi / vcs / impl / CollectionsDelta.java
blobc87651ea1e52abe3724fe80b5b2a4ec54cf51185
1 package com.intellij.openapi.vcs.impl;
3 import org.jetbrains.annotations.Nullable;
5 import java.util.Collection;
6 import java.util.HashSet;
7 import java.util.Set;
9 public class CollectionsDelta {
10 private CollectionsDelta() {
13 @Nullable
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);
24 return notInSecond;