Code completion: avoid duplication of elements for java classes