Collection<UsageInfo> (String @NotNull ... fileNames) { assertInitialized(); if (fileNames.length > 0) { configureByFiles(fileNames); } int flags = TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED; PsiElement targetElement = TargetElementUtil.findTargetElement(getEditor(), flags); assertNotNull("Cannot find referenced element", targetElement); return findUsages(targetElement); }