From 6ca926199820bbfdb3d5bb1aca6e80ea053f55d0 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 24 Jan 2023 15:59:40 +0100 Subject: [PATCH] notnull, cleanup GitOrigin-RevId: 09848bdf30bf47ff6d10e19550c8725c44e4e487 --- platform/lang-api/src/com/intellij/facet/FacetFinder.java | 1 + .../lang-impl/src/com/intellij/facet/impl/FacetFinderImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);