use of com.intellij.codeInspection.CommonProblemDescriptorImpl in project intellij-community by JetBrains.
the class UnsupportedFeatures method createIntention.
@NotNull
private static IntentionAction createIntention(@NotNull PsiElement node, @Nullable TextRange range, @NotNull String message, @NotNull LocalQuickFix localQuickFix) {
final LocalQuickFix[] quickFixes = { localQuickFix };
final CommonProblemDescriptorImpl descr = new ProblemDescriptorImpl(node, node, message, quickFixes, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, true, range, true);
return QuickFixWrapper.wrap((ProblemDescriptor) descr, 0);
}
Aggregations