diff --git a/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/InplaceRefactoring.java b/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/InplaceRefactoring.java index f604e897333a..512d5c442386 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/InplaceRefactoring.java +++ b/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/InplaceRefactoring.java @@ -664,10 +664,10 @@ public abstract class InplaceRefactoring { } } - private static PsiElement getSelectedInEditorElement(@Nullable PsiElement nameIdentifier, - final Collection refs, - Collection> stringUsages, - final int offset) { + private PsiElement getSelectedInEditorElement(@Nullable PsiElement nameIdentifier, + final Collection refs, + Collection> stringUsages, + final int offset) { if (nameIdentifier != null) { final TextRange range = nameIdentifier.getTextRange(); if (range != null && contains(range, offset)) return nameIdentifier; @@ -683,7 +683,7 @@ public abstract class InplaceRefactoring { if (contains(stringUsage.second.shiftRight(element.getTextRange().getStartOffset()), offset)) return element; } - LOG.error(nameIdentifier); + LOG.error(nameIdentifier + " by " + this.getClass().getName()); return null; }