String className = importUsedBy.getClazz().getFQN();
IType type = null;
if (selectedFiles != null) {
IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
for (File selectedFile : selectedFiles) {
IFile[] wsfiles = wsroot.findFilesForLocationURI(selectedFile.toURI());
for (IFile wsfile : wsfiles) {
IJavaProject javaProject = JavaCore.create(wsfile.getProject());
try {
type = javaProject.findType(className);
if (type != null)