void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) { return; } final SourcePosition place = getPlace(e); if (place != null) { Document document = place.getFile().getViewProvider().getDocument(); if (document != null) { DebuggerManagerEx debuggerManager = DebuggerManagerEx.getInstanceEx(project); BreakpointManager manager = debuggerManager.getBreakpointManager(); final int offset = place.getOffset(); final Breakpoint breakpoint = offset >= 0 ? manager.findBreakpoint(document, offset, FieldBreakpoint.CATEGORY) : null; if (breakpoint == null) { FieldBreakpoint fieldBreakpoint = manager.addFieldBreakpoint(document, offset); if (fieldBreakpoint != null) { final Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor != null) { manager.editBreakpoint(fieldBreakpoint, editor); } } } else { manager.removeBreakpoint(breakpoint); } } } }