void (@NotNull PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(Holder.ourTestClassPattern, new JavaClassReferenceProvider()); registrar.registerReferenceProvider(Holder.ourListenerClassPattern, new JavaClassReferenceProvider()); final JavaClassReferenceProvider methodSelectorProvider = new JavaClassReferenceProvider(); methodSelectorProvider.setOption(JavaClassReferenceProvider.EXTEND_CLASS_NAMES, new String[]{"org.testng.IMethodSelector"}); registrar.registerReferenceProvider(Holder.ourMethodSelectorPattern, methodSelectorProvider); registrar.registerReferenceProvider(Holder.ourSuiteFilePattern, new PathListReferenceProvider(){ @Override protected boolean disableNonSlashedPaths() { return false; } }); }