Fix java visibility publicity

 #KT-6478 Fixed
Skip local declarations in visibility publicity checking
Buildserver auto merge