private ProblemDescriptor generateProblemDescriptor( RegExpChar ch, InspectionManager manager, boolean isOnTheFly) { Character value = ch.getValue(); String msg = "Character class already contains char '" + value + "'"; return manager.createProblemDescriptor( ch, msg, isOnTheFly, new LocalQuickFix[] {new DeleteCharFix(ch)}, ProblemHighlightType.GENERIC_ERROR_OR_WARNING); }
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor problemDescriptor) { ch.delete(); }
@NotNull public String getName() { return "Remove duplicate char " + ch.getText(); }