boolean (GlobalSearchScope scope) { final boolean findAll = myRegistrationType == RegistrationType.ALL; final boolean allComponents = findAll || myRegistrationType == RegistrationType.ALL_COMPONENTS; if (allComponents || myRegistrationType == RegistrationType.APPLICATION_COMPONENT) { if (IdeaPluginRegistrationIndex.isRegisteredApplicationComponent(myPsiClass, scope)) { addType(ComponentType.APPLICATION.myClassName); return false; } } if (allComponents || myRegistrationType == RegistrationType.PROJECT_COMPONENT) { if (IdeaPluginRegistrationIndex.isRegisteredProjectComponent(myPsiClass, scope)) { addType(ComponentType.PROJECT.myClassName); return false; } } if (allComponents || myRegistrationType == RegistrationType.MODULE_COMPONENT) { if (IdeaPluginRegistrationIndex.isRegisteredModuleComponent(myPsiClass, scope)) { addType(ComponentType.MODULE.myClassName); return false; } } if (findAll || myRegistrationType == RegistrationType.ACTION) { if (IdeaPluginRegistrationIndex.isRegisteredActionOrGroup(myPsiClass, scope)) { addType(ActionType.ACTION.myClassName); return false; } } return true; }