sometimes, e.g. in Spring, intelliJ will not mark ...
# intellij
p
sometimes, e.g. in Spring, intelliJ will not mark some methods as unused (although they are not really used anywhere in the code). Does anyone know how exactly does it determine these exceptions to the unused rule? It seems random sometimes.
y
for public methods, the analysis is done heuristically: if the name of the method occurs more than a certain number of times as a word in the project code, it does not look at all of these words to check if they might be references to the method, and simply highlights the method as used
if you run analyze | inspect code, it performs full analysis for all methods, but it also takes much longer