Clean Java code based on IntelliJ IDEA analysis