boolean (AnActionEvent e) { HierarchyProvider provider = getProvider(e); if (LOG.isDebugEnabled()) { LOG.debug("Using provider " + provider); } if (provider == null) return false; PsiElement target = provider.getTarget(e.getDataContext()); if (LOG.isDebugEnabled()) { LOG.debug("Target: " + target); } return target != null; }