return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature((IType) element), element);
return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature((IType) element), element, isInsideJRE);
	private SearchPatternData determineInitValuesFrom(IJavaElement element) {		try {			switch (element.getElementType()) {				case IJavaElement.PACKAGE_FRAGMENT:				case IJavaElement.PACKAGE_DECLARATION:					return new SearchPatternData(PACKAGE, REFERENCES, true, element.getElementName(), element);				case IJavaElement.IMPORT_DECLARATION: {					IImportDeclaration declaration= (IImportDeclaration) element;					if (declaration.isOnDemand()) {						String name= Signature.getQualifier(declaration.getElementName());						return new SearchPatternData(PACKAGE, DECLARATIONS, true, name, element);					}					return new SearchPatternData(TYPE, DECLARATIONS, true, element.getElementName(), element);				}				case IJavaElement.TYPE:					return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature((IType) element), element);				case IJavaElement.COMPILATION_UNIT: {					IType mainType= ((ICompilationUnit) element).findPrimaryType();					if (mainType != null) {						return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature(mainType), mainType);					}					break;				}				case IJavaElement.CLASS_FILE: {					IType mainType= ((IClassFile) element).getType();					if (mainType.exists()) {						return new SearchPatternData(TYPE, REFERENCES, true, PatternStrings.getTypeSignature(mainType), mainType);					}					break;				}				case IJavaElement.FIELD:					return new SearchPatternData(FIELD, REFERENCES, true, PatternStrings.getFieldSignature((IField) element), element);				case IJavaElement.METHOD:					IMethod method= (IMethod) element;					int searchFor= method.isConstructor() ? CONSTRUCTOR : METHOD;					return new SearchPatternData(searchFor, REFERENCES, true, PatternStrings.getMethodSignature(method), element);			}					} catch (JavaModelException e) {			if (!e.isDoesNotExist()) {				ExceptionHandler.handle(e, SearchMessages.Search_Error_javaElementAccess_title, SearchMessages.Search_Error_javaElementAccess_message); 			}			// element might not exist		}		return null;		}