List<?> nodes = res.getTypedNodeList(res.getResourceCompUnit(), ASTNode.METHOD_DECLARATION, true);
for (Object obj : nodes) {
MethodDeclaration decl = (MethodDeclaration) obj;
for (Object modObj : decl.modifiers()) {
IExtendedModifier mod = (IExtendedModifier) modObj;
if (mod instanceof Modifier) {
if (((Modifier) mod).isStatic()) {
generateResultsForASTNode(history, decl, res,
"The method "+ decl.getName().getFullyQualifiedName() +
" may not be static. Use singletons declared in the "