XBreakpoint<PyExceptionBreakpointProperties> (final Project project, JComponent parentComponent) { final PyClassTreeChooserDialog dialog = new PyClassTreeChooserDialog(PyBundle.message( "debugger.exception.breakpoint.select.exception.class"), project, GlobalSearchScope.allScope(project), new PyExceptionCachingFilter(), null); dialog.showDialog(); // on ok final PyClass pyClass = dialog.getSelected(); if (pyClass != null) { final String qualifiedName = pyClass.getQualifiedName(); assert qualifiedName != null : "Qualified name of the class shouldn't be null"; return XDebuggerManager.getInstance(project).getBreakpointManager() .addBreakpoint(this, new PyExceptionBreakpointProperties(qualifiedName)); } return null; }