static boolean confirmMoveOfReadOnlyElements(
     IModelElement[] modelElements, IResource[] resources, IReorgQueries queries)
     throws CoreException {
   String queryTitle = RefactoringCoreMessages.ReadOnlyResourceFinder_2;
   String question = RefactoringCoreMessages.ReadOnlyResourceFinder_3;
   return ReadOnlyResourceFinder.confirmOperationOnReadOnlyElements(
       queryTitle, question, modelElements, resources, queries);
 }
 private static boolean confirmOperationOnReadOnlyElements(
     String queryTitle,
     String question,
     IModelElement[] modelElements,
     IResource[] resources,
     IReorgQueries queries)
     throws CoreException {
   boolean hasReadOnlyResources =
       ReadOnlyResourceFinder.hasReadOnlyResourcesAndSubResources(modelElements, resources);
   if (hasReadOnlyResources) {
     IConfirmQuery query =
         queries.createYesNoQuery(queryTitle, false, IReorgQueries.CONFIRM_READ_ONLY_ELEMENTS);
     return query.confirm(question);
   }
   return true;
 }