return Modifier.isStatic(((MethodDeclaration)decl).getModifiers());
MethodDeclaration methodDecl= (MethodDeclaration) decl; if (methodDecl.isConstructor()) { Statement statement= findParentStatement(selectedNode); if (statement instanceof ConstructorInvocation || statement instanceof SuperConstructorInvocation) { return true; } } return Modifier.isStatic(methodDecl.getModifiers());
	public static boolean isInStaticContext(ASTNode selectedNode) {		BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);		if (decl instanceof MethodDeclaration) {			return Modifier.isStatic(((MethodDeclaration)decl).getModifiers());		} else if (decl instanceof Initializer) {			return Modifier.isStatic(((Initializer)decl).getModifiers());		} else if (decl instanceof FieldDeclaration) {			return Modifier.isStatic(((FieldDeclaration)decl).getModifiers());		}		return false;	}	