refactoring to move logic into PsiStats
tests for amountOfParametersPerMethod and amountOfIfStatementsPerMethod