UpdateCopyright (Project project, Module module, VirtualFile file, FileType base, CopyrightProfile options) { return new UpdatePsiFileCopyright(project, module, file, options) { @Override protected void scanFile() { final PsiElement firstChild = getFile().getFirstChild(); checkComments(firstChild, PsiTreeUtil.skipSiblingsForward(firstChild, PsiComment.class, PsiWhiteSpace.class), true); } @Override protected boolean accept() { return getFile().getLanguage() == SPILanguage.INSTANCE; } }; }