@Override
  protected boolean isEnabled(AnActionEvent e) {
    final PsiClass psiClass = getPsiClass(e, true);

    return super.isEnabled(e) && psiClass != null && psiClass.isPhysical();
  }
@Override
  protected boolean isEnabled(AnActionEvent e)