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