Search in sources :

Example 1 with PsiElementUsageGroupBase

use of com.intellij.usages.PsiElementUsageGroupBase in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoFileStructureGroupRuleTest method getGroupElement.

@NotNull
private PsiElement getGroupElement() {
    UsageGroup group = GoFileStructureGroupRuleProvider.USAGE_GROUPING_RULE.groupUsage(findSingleUsage());
    assertNotNull(group);
    assertInstanceOf(group, PsiElementUsageGroupBase.class);
    return ((PsiElementUsageGroupBase) group).getElement();
}
Also used : PsiElementUsageGroupBase(com.intellij.usages.PsiElementUsageGroupBase) UsageGroup(com.intellij.usages.UsageGroup) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

PsiElementUsageGroupBase (com.intellij.usages.PsiElementUsageGroupBase)1 UsageGroup (com.intellij.usages.UsageGroup)1 NotNull (org.jetbrains.annotations.NotNull)1