return JavaMoveProcessor.isAvailable(new IResource[0], new IJavaElement[] {element}, JavaPreferencesSettings.getCodeGenerationSettings());
return JavaMoveProcessor.isAvailable(new IResource[0], new IJavaElement[] {element}, JavaPreferencesSettings.getCodeGenerationSettings(element.getJavaProject()));
	private boolean canEnable(JavaTextSelection selection) throws JavaModelException {		IJavaElement element= selection.resolveEnclosingElement();		if (element == null)			return false;		return JavaMoveProcessor.isAvailable(new IResource[0], new IJavaElement[] {element}, JavaPreferencesSettings.getCodeGenerationSettings());	}