@Override
  public boolean isAdded(Component component) {
    checkComponent(component);
    if (analysisMetadataHolder.isFirstAnalysis()) {
      return true;
    }
    return addedComponents.contains(component);
  }
@Test
  public void isAdded_fails_with_NPE_if_component_is_null() {
    assertThatThrownBy(() -> underTest.isAdded(null))
      .isInstanceOf(NullPointerException.class)
      .hasMessage("component can't be null");
  }