UsageInfo[] () { PsiNamedElement namedElement = getElementAtCaret(); JavaClassFindUsagesOptions options = new JavaClassFindUsagesOptions(getProject()); options.isFieldsUsages=true; options.isMethodsUsages=true; options.isUsages=true; CommonProcessors.CollectProcessor<UsageInfo> processor = new CommonProcessors.CollectProcessor<>(); processUsages(namedElement, options, processor); return processor.toArray(UsageInfo.EMPTY_ARRAY); }