diff --git a/platform/lang-api/src/com/intellij/facet/FacetFinder.java b/platform/lang-api/src/com/intellij/facet/FacetFinder.java index 10d6d627c112..0a9d5e5d168f 100644 --- a/platform/lang-api/src/com/intellij/facet/FacetFinder.java +++ b/platform/lang-api/src/com/intellij/facet/FacetFinder.java @@ -24,5 +24,6 @@ public abstract class FacetFinder { @NotNull public abstract & FacetRootsProvider> Collection findFacets(VirtualFile file, FacetTypeId type); + @NotNull public abstract > ModificationTracker getAllFacetsOfTypeModificationTracker(FacetTypeId type); } diff --git a/platform/lang-impl/src/com/intellij/facet/impl/FacetFinderImpl.java b/platform/lang-impl/src/com/intellij/facet/impl/FacetFinderImpl.java index 9741dfdb0814..9222b909680c 100644 --- a/platform/lang-impl/src/com/intellij/facet/impl/FacetFinderImpl.java +++ b/platform/lang-impl/src/com/intellij/facet/impl/FacetFinderImpl.java @@ -52,7 +52,7 @@ public class FacetFinderImpl extends FacetFinder { } @Override - public > ModificationTracker getAllFacetsOfTypeModificationTracker(FacetTypeId type) { + public > @NotNull ModificationTracker getAllFacetsOfTypeModificationTracker(FacetTypeId type) { AllFacetsOfTypeModificationTracker tracker = myAllFacetTrackers.get(type); if (tracker == null) { tracker = new AllFacetsOfTypeModificationTracker<>(myProject, type);