src/eu/inmite/android/plugin/butterknifezelezny/common/Utils.java
public static PsiFile findLayoutResource(Project project, String fileName) {
		String name = String.format("%s.xml", fileName);
		PsiFile[] files = FilenameIndex.getFilesByName(project, name, new EverythingGlobalScope(project));
		if (files.length <= 0) {
			return null; //no matching files
		}

		return files[0];
	}
/**
	 * Try to find layout XML file by name
	 *
	 * @param project
	 * @param fileName
	 * @return
	 */
Try to find layout XML file by name
@param project
@param fileName
@return
Try to find layout XML file by name @param project @param fileName @return
public static PsiFile findLayoutResource(Project project, String fileName) {
		String name = String.format("%s.xml", fileName);
		PsiFile[] files = FilenameIndex.getFilesByName(project, name, new EverythingGlobalScope(project));
		if (files.length <= 0) {
			return null; 
		}
		return files[0];
	}
public static PsiFile findLayoutResource ( Project project , String fileName ) { String name = String . format ( "%s.xml" , fileName ) ; PsiFile [ ] files = FilenameIndex . getFilesByName ( project , name , new EverythingGlobalScope ( project ) ) ; if ( files . length <= 0 ) { return null ; } return files [ 0 ] ; }
Try to find layout XML file by name
 @param project
 @param fileName
 @return
Try to find layout XML file by name @param project @param fileName @return
//no matching files