boolean (@NotNull Project project, Editor editor, PsiFile file) { final PsiModifierListOwner owner = getTarget(editor, file); if (owner != null) { boolean hasRange = !JvmPsiRangeSetUtil.fromPsiElement(owner).equals(LongRangeSet.all()); String name = getElementName(owner); setText(hasRange ? JavaBundle.message("intention.text.edit.range.of.0", name) : JavaBundle.message("intention.text.add.range.to.0", name)); return true; } return false; }