use of com.intellij.codeInspection.LocalQuickFixAsIntentionAdapter in project intellij-community by JetBrains.
the class GrAccessibilityChecker method registerFixes.
private void registerFixes(GrReferenceElement ref, GroovyResolveResult result, HighlightInfo info) {
PsiElement element = result.getElement();
assert element != null;
ProblemDescriptor descriptor = InspectionManager.getInstance(ref.getProject()).createProblemDescriptor(element, element, "", HighlightInfo.convertSeverityToProblemHighlight(info.getSeverity()), true, LocalQuickFix.EMPTY_ARRAY);
for (GroovyFix fix : buildFixes(ref, result)) {
QuickFixAction.registerQuickFixAction(info, new LocalQuickFixAsIntentionAdapter(fix, descriptor), myDisplayKey);
}
}
Aggregations