int (PsiStatement @NotNull [] statements) { int hash = statements.length; for (PsiStatement statement : statements) { hash = hash * 31 + hashElement(statement, 2); // Don't want to hash the whole PSI tree because it might be quite slow } return hash; }