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