@Override
 public Collection<PsiReferenceList> get(
     @NotNull final String s,
     @NotNull final Project project,
     @NotNull final GlobalSearchScope scope) {
   return StubIndex.getElements(
       getKey(), s, project, new JavaSourceFilterScope(scope), PsiReferenceList.class);
 }
Exemplo n.º 2
0
 /**
  * Searching project files for global hash definitions by specific package and variable name
  *
  * @param project project to search in
  * @param canonicalName canonical variable name package::name
  * @return Collection of found definitions
  */
 public static Collection<PerlVariable> findGlobalHashDefinitions(
     Project project, String canonicalName) {
   assert canonicalName != null;
   return StubIndex.getElements(
       PerlVariableStubIndexKeys.KEY_HASH,
       canonicalName,
       project,
       GlobalSearchScope.allScope(project),
       PerlVariable.class);
 }
 @Override
 public Collection<PsiClass> get(
     final Integer integer, final Project project, @NotNull final GlobalSearchScope scope) {
   return StubIndex.getElements(
       getKey(), integer, project, new JavaSourceFilterScope(scope), PsiClass.class);
 }
 @NotNull
 @Override
 public Collection<KtProperty> get(
     @NotNull String s, @NotNull Project project, @NotNull GlobalSearchScope scope) {
   return StubIndex.getElements(KEY, s, project, scope, KtProperty.class);
 }