void () { getSelectedMethod().forEach(fileName -> { var requester = new Object(); var folder = VirtualFileManager.getInstance().findFileByNioPath(Path.of(annotationValue)); WriteCommandAction.runWriteCommandAction(project, () -> { try { folder.createChildData(requester, fileName + extensionField.getText()); if (isQFFileNeeded()) folder.createChildData(requester, fileName + ".after" + extensionField.getText()); } catch (IOException | NullPointerException e) { LOG.warn(e); } }); }); super.doOKAction(); }