private static ConfigPanelState of(JComponent panel, InspectionToolWrapper<?, ?> toolWrapper) {
      return panel == null ? EMPTY : new ConfigPanelState(panel, toolWrapper);
    }
private static ConfigPanelState of(JComponent panel, InspectionToolWrapper<?, ?> toolWrapper)