|
|
|
@ -45,8 +45,10 @@ class DelegateLocalInspectionTool : LocalInspectionTool(), AliBaseInspection {
|
|
|
|
|
return localInspectionTool.runForWholeFile()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun checkFile(file: PsiFile, manager: InspectionManager,
|
|
|
|
|
isOnTheFly: Boolean): Array<ProblemDescriptor>? {
|
|
|
|
|
override fun checkFile(
|
|
|
|
|
file: PsiFile, manager: InspectionManager,
|
|
|
|
|
isOnTheFly: Boolean
|
|
|
|
|
): Array<ProblemDescriptor>? {
|
|
|
|
|
return localInspectionTool.checkFile(file, manager, isOnTheFly)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -81,11 +83,13 @@ class DelegateLocalInspectionTool : LocalInspectionTool(), AliBaseInspection {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun isSuppressedFor(element: PsiElement): Boolean {
|
|
|
|
|
return false
|
|
|
|
|
return localInspectionTool.isSuppressedFor(element)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun buildVisitor(holder: ProblemsHolder, isOnTheFly: Boolean,
|
|
|
|
|
session: LocalInspectionToolSession): PsiElementVisitor {
|
|
|
|
|
override fun buildVisitor(
|
|
|
|
|
holder: ProblemsHolder, isOnTheFly: Boolean,
|
|
|
|
|
session: LocalInspectionToolSession
|
|
|
|
|
): PsiElementVisitor {
|
|
|
|
|
if (!AliLocalInspectionToolProvider.javaShouldInspectChecker.shouldInspect(holder.file)) {
|
|
|
|
|
return PsiElementVisitor.EMPTY_VISITOR
|
|
|
|
|
}
|
|
|
|
|