[AutoDetect] while detecting indent, skip line comments (IDEA-132279).
Also was extracted base class for indent detection tests and created java specific one.