public static Properties getProperties(IStorage storage) { if (storage == null) return null;  Properties props= new Properties(); InputStream is= null;  ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();
public static Properties getProperties(IJavaProject javaProject, AccessorClassReference accessorClassReference) {
	public static Properties getProperties(IStorage storage) {		if (storage == null)			return null;		Properties props= new Properties();		InputStream is= null;				ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();		try {			if (manager != null) {				ITextFileBuffer buffer= manager.getTextFileBuffer(storage.getFullPath());				if (buffer != null) {					IDocument document= buffer.getDocument();					is= new ByteArrayInputStream(document.get().getBytes());				}			}						// Fallback: read from storage			if (is == null)				is= storage.getContents();						props.load(is);					} catch (IOException e) {			// sorry no properties			return null;		} catch (CoreException e) {			// sorry no properties			return null;		} finally {			if (is != null) try {				is.close();			} catch (IOException e) {				// return properties anyway but log				JavaPlugin.log(e);			}		}		return props;	}