SONARJAVA-52 public method of private interface is not public API