return !method.isReadOnly() && !method.isMainMethod() && Flags.isDeprecated(method.getFlags());
return canEnable(method);
	private boolean canEnable(final IStructuredSelection selection) throws JavaModelException {		if (selection.size() == 1) {			final Object element= selection.getFirstElement();			if (element instanceof IMethod) {				final IMethod method= (IMethod) element;				return !method.isReadOnly() && !method.isMainMethod() && Flags.isDeprecated(method.getFlags());			} else if (element instanceof IField) {				final IField field= (IField) element;				return !field.isReadOnly() && Flags.isDeprecated(field.getFlags());			}		}		return false;	}