}
//get the subSequence that is highlighted
CharSequence subSequence = pr.getSnapshot().getText().subSequence(startPosition+1, endPosition);
FileDescriptor file = vm.getSymbolTable().getFileDescriptor(FileUtil.toFile(qpr.getSnapshot().getSource().getFileObject()).getAbsolutePath());
Iterator<ClassDescriptor> classes = file.getClassIterator();
ClassDescriptor clazz = null;
while(classes.hasNext()) {
clazz = classes.next();
}
if(clazz != null) {
Document document = qpr.getSnapshot().getSource().getDocument(true);
Line line = NbEditorUtilities.getLine(document, startPosition, false);
MethodDescriptor methodAtLine = clazz.getMethodAtLine(line.getLineNumber() + 1, 0);
VariableParameterCommonDescriptor variable = methodAtLine.getVariable(subSequence.toString());
if(variable != null){
return true;
}else{
return false;