This commit is contained in:
Alexey Kudravtsev
2012-04-19 13:25:11 +04:00
parent 408a33b376
commit bf800f633d
2 changed files with 2 additions and 1 deletions
@@ -32,7 +32,7 @@ public class FileContextUtil {
private FileContextUtil() { }
@Nullable
public static PsiElement getFileContext(PsiFile file) {
public static PsiElement getFileContext(@NotNull PsiFile file) {
SmartPsiElementPointer pointer = file.getUserData(INJECTED_IN_ELEMENT);
return pointer == null ? null : pointer.getElement();
}
@@ -146,6 +146,7 @@ public class OrderRootsEnumeratorImpl implements OrderRootsEnumerator {
return result;
}
@NotNull
private Collection<String> computeRootsUrls() {
final Collection<String> result = new LinkedHashSet<String>();
myOrderEnumerator.forEach(new Processor<OrderEntry>() {