Unused private method

Author: Semmle LGTM

import java

from Method m
where
  m.isPrivate() and
  not exists(m.getAReference()) and
  not m instanceof InitializerMethod
select m

Description

Finds private methods that are not accessed