Bug 39023 Create static field quick fix creates an instance field [quick fix]
When referencing a class field that doesn't exist, the quick fix to 'create field in type...' creates an instance field, not a static field. e.g. Open quick fix on reference Foo.x when x doesn't exist creates private [type] x; rather than private static [type] x;
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
ASTNode node= ASTResolving.findParentType(fOriginalNode);
		if (newTypeDecl.equals(node)) {
			modifiers |= Modifier.PRIVATE;
			if (ASTResolving.isInStaticContext(fOriginalNode)) {
				modifiers |= Modifier.STATIC;
			}
		} else if (node instanceof AnonymousClassDeclaration) {
			modifiers |= Modifier.PROTECTED;
		} else {
			modifiers |= Modifier.PUBLIC;
			ASTNode parent= fOriginalNode.getParent();	
			if (parent instanceof QualifiedName) {
				Name qualifier= ((QualifiedName)parent).getQualifier();
				if (qualifier.resolveBinding().getKind() == IBinding.TYPE) {
					modifiers |= Modifier.STATIC;
				}
			}
		}
		return modifiers;
	}	
	/**
	 * Returns the variable kind.
	 * @return int
	 */
	public int getVariableKind() {
		return fVariableKind;
	}
}