Пример #1
0
  @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();
  }
Пример #2
0
 @NotNull
 @Override
 public ResolveResult[] multiResolve(boolean b) {
   return PsiElementResolveResult.createResults(WSUtil.resolveFilesByName(parseResult, project));
 }