void (UsageInfo @NotNull [] usages) { PsiManager manager = myMember.getManager(); PsiElementFactory factory = JavaPsiFacade.getElementFactory(manager.getProject()); try { for (UsageInfo usage : usages) { if (usage instanceof SelfUsageInfo) { changeSelfUsage((SelfUsageInfo)usage); } else if (usage instanceof InternalUsageInfo) { changeInternalUsage((InternalUsageInfo)usage, factory); } else { changeExternalUsage(usage, factory); } } changeSelf(factory, usages); } catch (IncorrectOperationException ex) { LOG.error(ex); } }