use of com.intellij.psi.impl.source.xml.PossiblePrefixReference in project intellij-community by JetBrains.
the class SchemaPrefixRenameHandler method getReference.
@Nullable
private static PossiblePrefixReference getReference(PsiFile file, Editor editor) {
if (file != null && editor != null) {
int offset = editor.getCaretModel().getOffset();
PsiReference reference = file.findReferenceAt(offset);
if (reference instanceof PossiblePrefixReference) {
return (PossiblePrefixReference) reference;
}
}
return null;
}
Aggregations