SONARJAVA-746 Fix NPE in getLine of anonymous classes
SONARJAVA-747 unused private method should not raise NPE