mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Add nullability annotation and Javadoc for MoveRenameUsageInfo#getReferenceRangeToCheck
(cherry picked from commit 30a142ee4551b2b54ea3af79b64533461a283c69) IJ-CR-158778 GitOrigin-RevId: 42fa9887f77225368e76e991f80b831e486d6663
This commit is contained in:
committed by
intellij-monorepo-bot
parent
832ee8f6cb
commit
dd48232d92
@@ -97,7 +97,14 @@ public class MoveRenameUsageInfo extends UsageInfo implements Cloneable {
|
||||
return checkReferenceRange(element, start -> element.findReferenceAt(start));
|
||||
}
|
||||
|
||||
protected Segment getReferenceRangeToCheck(@NotNull PsiElement element) {
|
||||
/**
|
||||
* Range that is used to check if the reference was not changed.
|
||||
* Can be overridden in case of reference was modified deliberately.
|
||||
*
|
||||
* @param element of the reference.
|
||||
* @return range of the reference in the document.
|
||||
*/
|
||||
protected @NotNull Segment getReferenceRangeToCheck(@NotNull PsiElement element) {
|
||||
return myReferenceRangeMarker;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user