public void setFailMessage(@NotNull @Nls String reason) {
    StreamEx.of(myTabContents).prepend(myFlatContent)
            .forEach(x -> x.setContent(new JBLabel(reason, SwingConstants.CENTER), BorderLayout.CENTER));
  }
public void setFailMessage(@NotNull @Nls String reason)