FIR IDE: introduce HLRedundantVisibilityModifierInspection by extended checker
This commit is contained in:
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.psi;
|
||||
import com.intellij.lang.ASTNode;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.stubs.IStubElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.kotlin.lexer.KtModifierKeywordToken;
|
||||
@@ -66,6 +67,12 @@ public abstract class KtModifierList extends KtElementImplStub<KotlinModifierLis
|
||||
return findChildByType(tokenType);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public PsiElement getModifier(@NotNull TokenSet tokenTypes) {
|
||||
return findChildByType(tokenTypes);
|
||||
}
|
||||
|
||||
|
||||
public PsiElement getOwner() {
|
||||
return getParentByStub();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user