FindUsagesHandler (@NotNull PsiElement element, boolean forHighlightUsages) { for (FindUsagesHandlerFactory factory : FindUsagesHandlerFactory.EP_NAME.getExtensionList(myProject)) { if (!factory.canFindUsages(element)) { continue; } Class<? extends FindUsagesHandlerFactory> aClass = factory.getClass(); FindUsagesHandlerFactory copy = myProject.instantiateClass(aClass, factory.pluginDescriptor.getPluginId()); FindUsagesHandler handler = copy.createFindUsagesHandler(element, forHighlightUsages); if (handler == FindUsagesHandler.NULL_HANDLER) { return null; } if (handler != null) { return handler; } } return null; }