void () { ServiceContainerUtil.registerExtension(ApplicationManager.getApplication(), ImplicitUsageProvider.EP_NAME, new ImplicitUsageProvider() { @Override public boolean isImplicitUsage(@NotNull PsiElement element) { return false; } @Override public boolean isImplicitRead(@NotNull PsiElement element) { return false; } @Override public boolean isImplicitWrite(@NotNull PsiElement element) { return element instanceof PsiField && "implicit".equals(((PsiField)element).getName()); } }, getTestRootDisposable()); doTest(); }