STS-3533: add automatic detection of JavaConfig files