@NotNull public Object[] getVariants() { Collection<String> variants = WSUtil.getVariantsByName(parseResult, project); Collection<String> result = new HashSet<String>(); for (Object variant : variants) { result.add("js!" + variant); result.addAll(WSUtil.getOtherModules((String) variant, project)); } return result.toArray(); }
@NotNull @Override public ResolveResult[] multiResolve(boolean b) { return PsiElementResolveResult.createResults(WSUtil.resolveFilesByName(parseResult, project)); }