void (@NotNull AnActionEvent e) { if (!CompilerReferenceServiceBase.isEnabled() || !Registry.is("enable.compiler.reference.index.test.actions")) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation().setEnabledAndVisible(getPsiElement(e.getDataContext()) != null); }