/** * Get jet non-extension top-level function names. Method is allowed to give invalid names - all * result should be checked with getTopLevelFunctionDescriptorsByName(). * * @return */ @NotNull public Collection<String> getAllTopLevelFunctionNames() { Set<String> functionNames = new HashSet<String>(); functionNames.addAll(JetShortFunctionNameIndex.getInstance().getAllKeys(project)); functionNames.addAll( JetFromJavaDescriptorHelper.getPossiblePackageDeclarationsNames( project, GlobalSearchScope.allScope(project))); return functionNames; }