InspectionProfileModifiableModel (@NotNull Component c) { final SingleInspectionProfilePanel panel = UIUtil.uiParents(c, true).filter(SingleInspectionProfilePanel.class).first(); if (panel == null) return null; return panel.getProfile(); }