void (@NotNull CompletionResultSet result) { List<LookupElement> cachedElements = myCachedElements; if (cachedElements == null) { cachedElements = MavenUtil.getPhaseVariants(MavenProjectsManager.getInstance(myProject)); myCachedElements = cachedElements; } result.addAllElements(cachedElements); }