void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar .registerUastReferenceProvider(registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .methodCallParameter(0, psiMethod() .withName(string().oneOf( "getBoolean", "getInt", "getString", "getEnum", "getDefaultBoolean", "getDefaultInt", "getDefaultString", "getDefaultEnum", "setBoolean", "setInt", "setString", "setEnum") ) .definedInClass(AdvancedSettings.class.getName())), UastReferenceRegistrar.uastInjectionHostReferenceProvider( (expression, host) -> new PsiReference[]{new AdvancedSettingReference(host)}), PsiReferenceRegistrar.DEFAULT_PRIORITY); }