16
16
import com .intellij .util .ProcessingContext ;
17
17
import com .magento .idea .magento2plugin .indexes .PluginIndex ;
18
18
import com .magento .idea .magento2plugin .reference .xml .PolyVariantReferenceBase ;
19
- import org .jetbrains .annotations .NotNull ;
20
-
21
19
import java .util .ArrayList ;
22
20
import java .util .Collection ;
23
21
import java .util .List ;
22
+ import org .jetbrains .annotations .NotNull ;
24
23
25
24
public class PluginReferenceProvider extends PsiReferenceProvider {
26
25
@ Override
27
26
public @ NotNull PsiReference [] getReferencesByElement (
28
- @ NotNull final PsiElement element ,
29
- @ NotNull final ProcessingContext context
27
+ @ NotNull final PsiElement element ,
28
+ @ NotNull final ProcessingContext context
30
29
) {
31
30
final List <PsiReference > psiReferences = new ArrayList <>();
32
31
final Project project = element .getProject ();
@@ -38,10 +37,10 @@ public class PluginReferenceProvider extends PsiReferenceProvider {
38
37
final String originalTypeName = originalTypeTag .getAttribute ("name" ).getValue ();
39
38
40
39
final Collection <PsiElement > types = PluginIndex .getInstance (project ).getPluginElements (
41
- originalTypeName ,
42
- GlobalSearchScope .getScopeRestrictedByFileTypes (
43
- GlobalSearchScope .allScope (project ), XmlFileType .INSTANCE
44
- )
40
+ originalTypeName ,
41
+ GlobalSearchScope .getScopeRestrictedByFileTypes (
42
+ GlobalSearchScope .allScope (project ), XmlFileType .INSTANCE
43
+ )
45
44
);
46
45
47
46
for (final PsiElement type : types ) {
0 commit comments