package org.jetbrains.debugger.memory.action;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.xdebugger.XDebugSession;
import com.sun.jdi.ReferenceType;
import org.jetbrains.debugger.memory.view.InstancesWindow;

public class ShowInstancesFromClassesViewAction extends ClassesActionBase {
  @Override
  protected boolean isEnabled(AnActionEvent e) {
    return super.isEnabled(e);
  }

  @Override
  protected void perform(AnActionEvent e) {
    XDebugSession debugSession = getDebugSession(e);
    ReferenceType selectedClass = getSelectedClass(e);
    if (debugSession != null && selectedClass != null) {
      new InstancesWindow(debugSession, selectedClass).show();
    }
  }
}

@@ -401,16 +401,48 @@
 abled(e)
+ && getSelectedClass(e) != null 
 ;%0A  %7D%0A%0A 

Fix bug when "Show Instances" action enabled when no selected class