CommonRefactoringUtil.showErrorHint(project, editor, "Rule is referenced only in attributes", "Inline Rule", null);
return;
}
if (!CommonRefactoringUtil.checkReadOnlyStatus(project, rule)) return;
PsiReference reference = editor != null ? TargetElementUtilBase.findReference(editor, editor.getCaretModel().getOffset()) : null;
if (reference != null && !rule.equals(reference.resolve())) {
reference = null;
}
InlineRuleDialog dialog = new InlineRuleDialog(project, rule, reference);
dialog.show();